Title: | Visual and Non-Visual Spectral Analysis of Light |
---|---|
Description: | Analyse light spectra for visual and non-visual (often called melanopic) needs, wrapped up in a Shiny App. 'Spectran' allows for the import of spectra in various CSV forms but also provides a wide range of example spectra and even the creation of own spectral power distributions. The goal of the app is to provide easy access and a visual overview of the spectral calculations underlying common parameters used in the field. It is thus ideal for educational purposes or the creation of presentation ready graphs in lighting research and application. 'Spectran' uses equations and action spectra described in CIE S026 (2018) <doi:10.25039/S026.2018>, DIN/TS 5031-100 (2021) <doi:10.31030/3287213>, and ISO/CIE 23539 (2023) <doi:10.25039/IS0.CIE.23539.2023>. |
Authors: | Johannes Zauner [aut, cre, cph]
|
Maintainer: | Johannes Zauner <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.6 |
Built: | 2025-02-24 05:50:34 UTC |
Source: | https://github.com/litgde/spectran |
Contains named vectors of Hex color codes for Spectran's color pallets.
ColorP
ColorP
ColorP
A list containing 5 elements, each a named vector of colors
401 colors along the spectrum that make a nice, yet nonaccurate representation of the visible spectrum. Created from a picture provided by Dieter Lang
.
same as Lang
but with a slightly brightened version of the picture. Strikes a nice balance between "accuracy" and "nice colors". Is the default when starting Spectran()
401 colors along the spectrum that were made with the cooltools::wavelength2col()
function and are based on Fortran Code by Dan_Bruton. Probably most accurate, but black at both spectral ends, which does not represent the colors themselves but also human sensitivity to them.
401 colors along the spectrum that make a vibrant and pleasing, yet nonaccurate representation of the visible spectrum. Created by the grDevices::rainbow()
function.
14 colors that represent the reference colors used to determine the color rendering index.
https://github.com/LiTGde/Spectran/issues/14
Contains Measurement and CIE Standard Illuminant Spectra. Additional data to the spectra can be found in the examplespectra_descriptor dataset.
examplespectra
examplespectra
examplespectra
A list of two elements, each containing a table of spectral data
Spectral data measured by a spectroradiometer. The unit of the wavelength (Wellenlaenge) is nm, the unit of the spectral data is W/m^2.
Spectral data from the CIE describing Standard Illuminants. The unit of the wavelength (Wellenlaenge) is nm, the unit of the spectral data is W/m^2.
Contains additional details on the measurement and CIE Standard Illuminant Spectra collected in examplespectra.
examplespectra_descriptor
examplespectra_descriptor
examplespectra_descriptor
A list with an element per language. The following description covers elements within each language element, which is a tibble with 11 rows and 8 columns.
Category of the spectrum (short)
Short description of the category of the spectrum
A list of character vectors containing the unique identifiers of each spectrum
A list of character vectors containing the text to be displayed on the buttons for each spectrum
A list of character vectors containing the text used for the download-filenames
A character vector with URLs to videos giving some context to the measurements or NA, in which case nothing will be displayed
A logical vector that indicates whether a special message should be displayed before downloading this spectrum
A list of named character vectors containing a short description of the spectrum.
Spec
ifications for visual and nonvisual data wrangling and plottingContains vectors and tables that are the main basis for the calculations Spectran does and also contain basic naming and coloring conventions.
Specs
Specs
Specs
A list with 7 elements
A table of action spectra for the 5 human receptor types and V(lambda) from 1924. The table is in the wide format. The unit of the wavelength (Wellenlaenge) is nm, the unit of the action spectrum is 1 (dimensionless).
A table of action spectra for the 5 human receptor types and V(lambda) from 1924. The table is in the long format. The unit of the wavelength (Wellenlaenge) is nm, the unit of the action spectrum is 1 (dimensionless).
A named vector of inverse values of efficacy of luminous radiation for the 5 human receptor types and V(lambda) from 1924. The unit is lm/W.
A list. names
contains the names of the 5 human receptor types. adjectives
contains these names in their adjective form for every languages included in Spectran. descriptions
contains the descriptions used for tables and plotting. abb
contains the abbreviations (if any) used for the equivalent daylight illuminance for that receptor type.
A character scalar containing the properly escaped version of V(lambda), used e.g. in Plots
A character scalar containing the properly escaped version of the sign alpha
, used e.g. in Plots
A table of Peak Wavelength (nm) values, Names, Abbreviations, and colors for the 5 human receptor types and V(lambda) from 1924. This table is mainly used for plotting.
Unlock the Spectrum: Easy, Educational, and Engaging Analysis of Light Spectra
Spectran( lang_setting = "English", lang_link = FALSE, color_palette = "Lang", ... )
Spectran( lang_setting = "English", lang_link = FALSE, color_palette = "Lang", ... )
lang_setting |
A language for the application. Currently Deutsch for German and English (default) are implemented. Expects a character. |
lang_link |
Only relevant for the App deployed on Shinyapps.io. Handles whether a link to the German/English Version of the App is present in the header. Expects a logical (default FALSE) |
color_palette |
A color palette for the application. Currently |
... |
Any other settings that get passed to shinyApp |
Open a viewer with the shiny app
if(interactive()) { Spectran()} #try another language if(interactive()) { Spectran(lang_setting = "Deutsch")} #or try another color palette if(interactive()) { Spectran(color_palette = "Dan_Bruton")}
if(interactive()) { Spectran()} #try another language if(interactive()) { Spectran(lang_setting = "Deutsch")} #or try another color palette if(interactive()) { Spectran(color_palette = "Dan_Bruton")}