Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tzerk/rlumshiny
A collection of shiny applications for the R package Luminescence.
https://github.com/tzerk/rlumshiny
bootstrap jscolor luminescence luminescence-dating r shiny shiny-applications tooltip
Last synced: about 4 hours ago
JSON representation
A collection of shiny applications for the R package Luminescence.
- Host: GitHub
- URL: https://github.com/tzerk/rlumshiny
- Owner: tzerk
- License: other
- Created: 2015-03-13T15:34:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T20:05:43.000Z (4 months ago)
- Last Synced: 2024-10-05T19:51:07.246Z (about 1 month ago)
- Topics: bootstrap, jscolor, luminescence, luminescence-dating, r, shiny, shiny-applications, tooltip
- Language: R
- Size: 995 KB
- Stars: 7
- Watchers: 4
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.note
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```[![CRAN](https://www.r-pkg.org/badges/version/RLumShiny)](https://cran.rstudio.com/package=RLumShiny)
[![Downloads](https://cranlogs.r-pkg.org/badges/grand-total/RLumShiny)](https://www.r-pkg.org/pkg/RLumShiny)
[![Downloads](https://cranlogs.r-pkg.org/badges/RLumShiny)](https://www.r-pkg.org/pkg/RLumShiny)
[![Downloads](https://cranlogs.r-pkg.org/badges/last-week/RLumShiny)](https://www.r-pkg.org/pkg/RLumShiny)
[![Downloads](https://cranlogs.r-pkg.org/badges/last-day/RLumShiny)](https://www.r-pkg.org/pkg/RLumShiny)
[![Build status](https://ci.appveyor.com/api/projects/status/jp8ueedudbuhvtfe/branch/master?svg=true)](https://ci.appveyor.com/project/tzerk/rlumshiny/branch/master)
[![R-CMD-check](https://github.com/R-Lum/RLumShiny/workflows/R-CMD-check/badge.svg)](https://github.com/R-Lum/RLumShiny/actions)> Visit the project page!
> Follow us on [![alt text][1.1]][1] @RLuminescence
[1.1]: man/figures/twitter.png (twitter icon without padding)
[1]: https://www.twitter.com/RLuminescence# Overview
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 twitter bootstraps tooltip and pop over functionality and contains the [jscolor.js library](https://jscolor.com/) with a custom `shiny` output binding.
## Installation
To install the stable version from CRAN, simply run the following from an R console:
```{r, eval = FALSE}
install.packages("RLumShiny")
```To install the latest development builds directly from GitHub, run
```{r, eval = FALSE}
if (!require("devtools"))
install.packages("devtools")
devtools::install_github("tzerk/RLumShiny@master")
```## Applications
The RLumShiny package provides a single function from which all apps can be started: `app_RLum()`. It essentially only takes one argument, which is a unique keyword to specify which app to start. See the table below for a list of available apps and which keywords to use.
| Application | Keyword | Function |
|-------------|:---------:|----------|
| Abanico Plot | abanico | `plot_AbanicoPlot` |
| Histogram | histogram | `plot_Histogram` |
| Kernel Density Estimate Plot | KDE | `plot_KDE` |
| Radial Plot | radialplot | `plot_RadialPlot` |
| Dose Recovery Test | doserecovery | `plot_DRTResults` |
| Cosmic Dose Rate | cosmicdose | `calc_CosmicDoseRate`|
| CW Curve Transformation | transformCW | `CW2pHMi`, `CW2pLM`, `CW2pLMi`, `CW2pPMi` |
| Plot Filter Combinations | filter | `plot_FilterCombinations` |
| Calculate Fast Ratio | fastratio | `calc_FastRatio` |
| Fading measurement analysis and correction | fading | `analyse_FadingMeasurement`, `calc_FadingCorr` |
| Test OSL/IRSL Stimulation Power | teststimulationpower | `plot_RLum` |
| Scale Gamma Dose Rate† | scalegamma | `scale_GammaDose()` |
| Model dose rate evolution in carbonate-rich samples | RCarb | `RCarb::model_DoseRate` |The `app_RLum()` function is just a wrapper for `shiny::runApp()`. Via the `...` argument further arguments can be directly passed to `shiny::runApp()`. See `?shiny::runApp` for further details on valid arguments.
† Requires the development version (`@dev_0.9.0`-branch) of the `Luminescence` package.
## Extending Shiny
In addition to its main purpose of providing convenient access to the Luminescence shiny applications 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 `tooltip()` and `popover()`.
It further provides a custom input binding to the JavaScript/HTML color picker [JSColor](https://jscolor.com). Offering access to most options provided by the JSColor API the function `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 requiring any format conversion.
## Examples
### Abanico Plot app
`app_RLum("abanico")`
![Abanico app](man/figures/abanico.png)
### Tooltip
`tooltip(refId, text, attr = NULL, animation = TRUE, delay = 100, html = TRUE, placement = "auto", trigger = "hover")`
![tooltip](man/figures/tooltip.png)
### JSColor
`jscolorInput(inputId, label, value, position = "bottom", color = "transparent", mode = "HSV", slider = TRUE, close = FALSE)`
![jscolor.js](man/figures/jscolor.png)
## Contribute
This package is part of the R Luminescence project. The is based on and evolves from ideas, contributions and constructive criticism of its users. Help us to maintain and develop the package, to find bugs and create new functions as well as a user-friendly design. Visit our [message board](https://r-luminescence.org) or write us an [e-mail](mailto:[email protected]) if anything crosses your mind or if you want your new self-written shiny application to be to implemented. You are kindly invited to bring forward the package with us!
## Note
This version is a development version and it comes without any guarantee! For stable branches please visit
the package on [CRAN 'RLumShiny'](https://CRAN.R-project.org/package=RLumShiny ).## License
The `'RLumShiny'` package is licensed under the GPLv3. See these files in the main directory for additional details:
- LICENSE.note
## Related projects
* [RLumModel](https://github.com/R-Lum/RLumModel)
* [Luminescence](https://github.com/R-Lum/Luminescence)
* [RCarb](https://github.com/R-Lum/RCarb)