RLumShiny/ 0000755 0001762 0000144 00000000000 14175713406 012154 5 ustar ligges users RLumShiny/NAMESPACE 0000644 0001762 0000144 00000001036 14175252447 013376 0 ustar ligges users # Generated by roxygen2: do not edit by hand
export(RLumShinyAddin)
export(app_RLum)
export(jscolorInput)
export(popover)
export(tooltip)
import(Luminescence)
import(data.table)
import(googleVis)
import(readxl)
import(rhandsontable)
import(shiny)
import(shinydashboard)
importFrom(RCarb,model_DoseRate)
importFrom(RCarb,write_InputTemplate)
importFrom(grDevices,dev.off)
importFrom(grDevices,pdf)
importFrom(grDevices,postscript)
importFrom(grDevices,svg)
importFrom(markdown,markdownToHTML)
importFrom(utils,citation)
RLumShiny/LICENSE.note 0000644 0001762 0000144 00000001062 14175060542 014120 0 ustar ligges users The RLumShiny package as a whole is distributed under GPL-3 (GNU GENERAL PUBLIC
LICENSE version 3).
The RLumShiny package includes other open source software components. The following
is a list of these components:
- JSColor, https://github.com/odvarko/jscolor, GPLv3 License
- ShinySky, https://github.com/AnalytixWare/ShinySky, MIT license (YEAR: 2015, COPYRIGHT HOLDER: AnalytixWare)
- chooser-binding.js & chooser.R, https://github.com/rstudio/shiny-examples/tree/master/036-custom-input-control, MIT license (YEAR: 2016, COPYRIGHT HOLDER: RStudio) RLumShiny/man/ 0000755 0001762 0000144 00000000000 14175252574 012733 5 ustar ligges users RLumShiny/man/jscolorInput.Rd 0000644 0001762 0000144 00000004447 14175060542 015716 0 ustar ligges users % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jscolor.R
\name{jscolorInput}
\alias{jscolorInput}
\title{Create a JSColor picker input widget}
\usage{
jscolorInput(
inputId,
label,
value,
position = "bottom",
color = "transparent",
mode = "HSV",
slider = TRUE,
close = FALSE
)
}
\arguments{
\item{inputId}{\code{\link{character}} (\strong{required}):
Specifies the input slot that will be used to access the value.}
\item{label}{\code{\link{character}} (\emph{optional}):
Display label for the control, or NULL for no label.}
\item{value}{\code{\link{character}} (\emph{optional}):
Initial RGB value of the color picker. Default is black ('#000000').}
\item{position}{\code{\link{character}} (\emph{with default}):
Position of the picker relative to the text input ('bottom', 'left', 'top', 'right').}
\item{color}{\code{\link{character}} (\emph{with default}):
Picker color scheme ('transparent' by default). Use RGB color coding ('000000').}
\item{mode}{\code{\link{character}} (\emph{with default}):
Mode of hue, saturation and value. Can either be 'HSV' or 'HVS'.}
\item{slider}{\code{\link{logical}} (\emph{with default}):
Show or hide the slider.}
\item{close}{\code{\link{logical}} (\emph{with default}):
Show or hide a close button.}
}
\description{
Creates a JSColor (Javascript/HTML Color Picker) widget to be used in shiny applications.
}
\examples{
# html code
jscolorInput("col", "Color", "21BF6B", slider = FALSE)
# example app
\dontrun{
shinyApp(
ui = fluidPage(
jscolorInput(inputId = "col", label = "JSColor Picker",
value = "21BF6B", position = "right",
mode = "HVS", close = TRUE),
plotOutput("plot")
),
server = function(input, output) {
output$plot <- renderPlot({
plot(cars, col = input$col, cex = 2, pch = 16)
})
})
}
}
\seealso{
Other input.elements: \code{\link{animationOptions}}, \code{\link{sliderInput}};
\code{\link{checkboxGroupInput}}; \code{\link{checkboxInput}}; \code{\link{dateInput}};
\code{\link{dateRangeInput}}; \code{\link{fileInput}}; \code{\link{numericInput}};
\code{\link{passwordInput}}; \code{\link{radioButtons}}; \code{\link{selectInput}},
\code{\link{selectizeInput}}; \code{\link{submitButton}}; \code{\link{textInput}}
}
RLumShiny/man/RLumShiny-package.Rd 0000644 0001762 0000144 00000002446 14175060542 016503 0 ustar ligges users % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RLumShiny.R
\docType{package}
\name{RLumShiny-package}
\alias{RLumShiny-package}
\title{Shiny Applications for the R Package Luminescence}
\description{
A collection of shiny applications for the R package Luminescence.
These mainly, but not exclusively, include applications for plotting chronometric
data from e.g. luminescence or radiocarbon dating. It further provides access to
bootstraps tooltip and popover functionality as well as a binding to JSColor.
}
\details{
In addition to its main purpose of providing convenient access to the Luminescence
shiny applications (see \code{\link{app_RLum}}) this package also provides further functions to extend the
functionality of shiny. From the Bootstrap framework the JavaScript tooltip and popover
components can be added to any shiny application via \code{\link{tooltip}} and \code{\link{popover}}.
It further provides a custom input binding to the JavaScript/HTML color picker JSColor.
Offering access to most options provided by the JSColor API the function \code{\link{jscolorInput}}
is easily implemented in a shiny app. RGB colors are returned as hex values and can be
directly used in R's base plotting functions without the need of any format conversion.
}
RLumShiny/man/tooltip.Rd 0000644 0001762 0000144 00000005413 14175060542 014707 0 ustar ligges users % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tooltip.R
\name{tooltip}
\alias{tooltip}
\title{Create a bootstrap tooltip}
\usage{
tooltip(
refId,
text,
attr = NULL,
animation = TRUE,
delay = 100,
html = TRUE,
placement = "auto",
trigger = "hover"
)
}
\arguments{
\item{refId}{\code{\link{character}} (\strong{required}):
id of the element the tooltip is to be attached to.}
\item{text}{\code{\link{character}} (\strong{required}):
Text to be displayed in the tooltip.}
\item{attr}{\code{\link{character}} (\emph{optional}):
Attach tooltip to all elements with attribute \code{attr='refId'}.}
\item{animation}{\code{\link{logical}} (\emph{with default}):
Apply a CSS fade transition to the tooltip.}
\item{delay}{\code{\link{numeric}} (\emph{with default}):
Delay showing and hiding the tooltip (ms).}
\item{html}{\code{\link{logical}} (\emph{with default}):
Insert HTML into the tooltip.}
\item{placement}{\code{\link{character}} (\emph{with default}):
How to position the tooltip - \code{top} | \code{bottom} | \code{left} | \code{right} | \code{auto}.
When 'auto' is specified, it will dynamically reorient the tooltip.
For example, if placement is 'auto left', the tooltip will display to the
left when possible, otherwise it will display right.}
\item{trigger}{\code{\link{character}} (\emph{with default}):
How tooltip is triggered - \code{click} | \code{hover} | \code{focus} | \code{manual}.
You may pass multiple triggers; separate them with a space.}
}
\description{
Create bootstrap tooltips for any HTML element to be used in shiny applications.
}
\examples{
# javascript code
tt <- tooltip("elementId", "This is a tooltip.")
str(tt)
# example app
\dontrun{
shinyApp(
ui = fluidPage(
jscolorInput(inputId = "col", label = "JSColor Picker",
value = "21BF6B", position = "right",
mode = "HVS", close = TRUE),
tooltip("col", "This is a JScolor widget"),
checkboxInput("cbox", "Checkbox", FALSE),
tooltip("cbox", "This is a checkbox"),
checkboxGroupInput("cboxg", "Checkbox group", selected = "a",
choices = c("a" = "a",
"b" = "b",
"c" = "c")),
tooltip("cboxg", "This is a checkbox group", html = TRUE),
selectInput("select", "Selectinput", selected = "a", choices = c("a"="a", "b"="b")),
tooltip("select", "This is a text input field", attr = "for", placement = "right"),
passwordInput("pwIn", "Passwordinput"),
tooltip("pwIn", "This is a password input field"),
plotOutput("plot")
),
server = function(input, output) {
output$plot <- renderPlot({
plot(cars, col = input$col, cex = 2, pch = 16)
})
})
}
}
RLumShiny/man/app_RLum.Rd 0000644 0001762 0000144 00000005623 14175060542 014737 0 ustar ligges users % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/app_RLum.R
\name{app_RLum}
\alias{app_RLum}
\title{Run Luminescence shiny apps}
\usage{
app_RLum(app = NULL, ...)
}
\arguments{
\item{app}{\code{\link{character}} (\strong{required}):
name of the application to start. See details for a list of available apps.}
\item{...}{further arguments to pass to \code{\link{runApp}}}
}
\description{
A wrapper for \code{\link{runApp}} to start interactive shiny apps for the R package Luminescence.
}
\details{
The RLumShiny package provides a single function from which all shiny apps can be started: \code{app_RLum()}.
It essentially only takes one argument, which is a unique keyword specifying which application to start.
See the table below for a list of available shiny apps and which keywords to use. If no keyword is used
a dashboard will be started instead, from which an application can be started.
\tabular{lcl}{
\strong{Application name:} \tab \strong{Keyword:} \tab \strong{Function:} \cr
Abanico Plot \tab \emph{abanico} \tab \code{\link{plot_AbanicoPlot}} \cr
Histogram \tab \emph{histogram} \tab \code{\link{plot_Histogram}} \cr
Kernel Density Estimate Plot \tab \emph{KDE} \tab \code{\link{plot_KDE}} \cr
Radial Plot \tab \emph{radialplot} \tab \code{\link{plot_RadialPlot}} \cr
Dose Recovery Test \tab \emph{doserecovery} \tab \code{\link{plot_DRTResults}} \cr
Cosmic Dose Rate \tab \emph{cosmicdose} \tab \code{\link{calc_CosmicDoseRate}} \cr
CW Curve Transformation \tab \emph{transformCW} \tab \code{\link{CW2pHMi}}, \code{\link{CW2pLM}}, \code{\link{CW2pLMi}}, \code{\link{CW2pPMi}} \cr
Filter Combinations \tab \emph{filter} \tab \code{\link{plot_FilterCombinations}} \cr
Fast Ratio \tab \emph{fastratio} \tab \code{\link{calc_FastRatio}} \cr
Fading Correction \tab \emph{fading} \tab \code{\link{analyse_FadingMeasurement}}, \code{\link{calc_FadingCorr}} \cr
Test Stimulation Power \tab \emph{teststimulationpower} \tab \code{\link{plot_RLum}} \cr
Scale Gamma Dose Rate \tab \emph{scalegamma} \tab \code{scale_GammaDose} \cr
RCarb app \tab \emph{RCarb} \tab \link[RCarb:model_DoseRate]{RCarb::model_DoseRate}
}
The \code{app_RLum()} function is just a wrapper for \code{\link{runApp}}.
Via the \code{...} argument further arguments can be directly passed to \code{\link{runApp}}.
See \code{?shiny::runApp} for further details on valid arguments.
}
\examples{
\dontrun{
# Dashboard
app_RLum()
# Plotting apps
app_RLum("abanico")
app_RLum("histogram")
app_RLum("KDE")
app_RLum("radialplot")
app_RLum("doserecovery")
# Further apps
app_RLum("cosmicdose")
app_RLum("transformCW")
app_RLum("filter")
app_RLum("fastratio")
app_RLum("fading")
app_RLum("surfaceexposure")
app_RLum("teststimulationpower")
app_RLum("scalegamma")
app_RLum("RCarb")
}
}
\seealso{
\code{\link{runApp}}
}
\author{
Christoph Burow, University of Cologne (Germany)
}
RLumShiny/man/figures/ 0000755 0001762 0000144 00000000000 14175060542 014367 5 ustar ligges users RLumShiny/man/figures/jscolor.png 0000644 0001762 0000144 00000046473 14175060542 016566 0 ustar ligges users PNG
IHDR ?Lt sRGB gAMA a pHYs od tEXtSoftware paint.net 4.0.5e2e LIDATx^
TTg,],;,2aaap7C3MfMIttht MHiBD$A ъ"DDѲCR(C4I$9sRu[uSoF"""nDD H/DD Gz}$">ҋ#5@^D"HDd
}Lx^F?e/=xAUiC;>˗g(l)-.]zEK|tmY7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