Package: ggspectra 0.3.13.9000

ggspectra: Extensions to 'ggplot2' for Radiation Spectra

Additional annotations, stats, geoms and scales for plotting "light" spectra with 'ggplot2', together with specializations of ggplot() and autoplot() methods for spectral data and waveband definitions stored in objects of classes defined in package 'photobiology'. Part of the 'r4photobiology' suite, Aphalo P. J. (2015) <doi:10.19232/uv4pb.2015.1.14>.

Authors:Pedro J. Aphalo [aut, cre], Titta K. Kotilainen [ctb]

ggspectra_0.3.13.9000.tar.gz
ggspectra_0.3.13.9000.zip(r-4.5)ggspectra_0.3.13.9000.zip(r-4.4)ggspectra_0.3.13.9000.zip(r-4.3)
ggspectra_0.3.13.9000.tgz(r-4.4-any)ggspectra_0.3.13.9000.tgz(r-4.3-any)
ggspectra_0.3.13.9000.tar.gz(r-4.5-noble)ggspectra_0.3.13.9000.tar.gz(r-4.4-noble)
ggspectra_0.3.13.9000.tgz(r-4.4-emscripten)ggspectra_0.3.13.9000.tgz(r-4.3-emscripten)
ggspectra.pdf |ggspectra.html
ggspectra/json (API)
NEWS

# Install 'ggspectra' in R:
install.packages('ggspectra', repos = c('https://aphalo.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/aphalo/ggspectra/issues

On CRAN:

datavizggplot2-autoplotggplot2-enhancementesggplot2-geomsggplot2-scalesggplot2-statslightr4photobiology-suiteradiationspectra

129 exports 5 stars 7.99 score 46 dependencies 1 dependents 1 mentions 336 scripts 636 downloads

Last updated 6 days agofrom:82c0c8af03. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 28 2024
R-4.5-winOKSep 28 2024
R-4.5-linuxOKSep 28 2024
R-4.4-winOKSep 28 2024
R-4.4-macOKSep 28 2024
R-4.3-winOKSep 28 2024
R-4.3-macOKSep 28 2024

Exports:A_internal_labelA_labelA_total_labelAfr_labelautotitleaxis_labelsaxis_labels_noneaxis_labels_ukaxis_labels_uk_commablack_or_whitecolor_chartcounts_labelcps_labelexponent2factorexponent2prefixexponent2prefix_namegeom_spctGeomSpctggtitle_spcthas_SI_prefixmultipliers_labelmultiplotnearest_SI_exponentprefix_name2exponentprefix2exponentRfr_labelRfr_specular_labelRfr_total_labels.e.action_labels.e.irrad_labels.e.response_labels.q.action_labels.q.irrad_labels.q.response_labelscale_x_energy_eV_continuousscale_x_energy_J_continuousscale_x_frequency_continuousscale_x_wavenumber_continuousscale_x_wl_continuousscale_y_A_continuousscale_y_A_internal_continuousscale_y_A_total_continuousscale_y_Afr_continuousscale_y_counts_continuousscale_y_counts_tg_continuousscale_y_cps_continuousscale_y_multipliers_continuousscale_y_Rfr_continuousscale_y_Rfr_specular_continuousscale_y_Rfr_total_continuousscale_y_s.e.action_continuousscale_y_s.e.irrad_continuousscale_y_s.e.irrad_log10scale_y_s.e.response_continuousscale_y_s.q.action_continuousscale_y_s.q.irrad_continuousscale_y_s.q.irrad_log10scale_y_s.q.response_continuousscale_y_Tfr_continuousscale_y_Tfr_internal_continuousscale_y_Tfr_total_continuoussec_axis_energy_eVsec_axis_energy_Jsec_axis_w_frequencysec_axis_w_numbersec_axis_wlset_annotations_defaultset_w.band_defaultSI_pl_formatSI_plainSI_taggedSI_tg_formatstat_colorstat_find_qtysstat_find_wlsstat_label_peaksstat_label_valleysstat_peaksstat_spikesstat_valleysstat_wb_boxstat_wb_columnstat_wb_contributionstat_wb_e_irradstat_wb_e_sirradstat_wb_hbarstat_wb_irradstat_wb_labelstat_wb_meanstat_wb_q_irradstat_wb_q_sirradstat_wb_relativestat_wb_sirradstat_wb_totalstat_wl_stripstat_wl_summaryStatColorStatColorGuideStatFindQtyStatFindWlsStatLabelPeaksStatLabelValleysStatPeaksStatSpikesStatValleysStatWbBoxStatWbColumnStatWbContribStatWbHbarStatWbIrradStatWbLabelStatWbMeanStatWbRelativeStatWbSIrradStatWbTotalStatWlSummarysubtitle_spct.generic_spctTfr_internal_labelTfr_labelTfr_total_labeltitle_spctw_energy_eV_labelw_energy_J_labelw_frequencyw_frequency_labelw_length_labelw_numberw_number_labelwl_guide

Dependencies:clicolorspacecpp11dplyrfansifarvergenericsggplot2ggrepelgluegtableisobandlabelinglatticelifecyclelubridatemagrittrMASSMatrixmgcvmunsellnlmephotobiologyphotobiologyWavebandspillarpkgconfigplyrpolynompurrrR6RColorBrewerRcpprlangscalessplus2Rstringistringrtibbletidyrtidyselecttimechangeutf8vctrsviridisLitewithrzoo

User Guide: 0 The R for Photobiology Suite

Rendered fromuserguide-0-r4p-introduction.Rmdusingknitr::rmarkdownon Sep 28 2024.

Last update: 2023-04-02
Started: 2022-10-15

User Guide: 1 Grammar of Graphics

Rendered fromuserguide1-grammar.Rmdusingknitr::rmarkdownon Sep 28 2024.

Last update: 2024-08-02
Started: 2017-07-04

User Guide: 2 Autoplot Methods

Rendered fromuserguide2-autoplot-methods.Rmdusingknitr::rmarkdownon Sep 28 2024.

Last update: 2024-07-09
Started: 2019-02-19

Readme and manuals

Help Manual

Help pageTopics
ggspectra: Extensions to 'ggplot2' for Radiation Spectraggspectra-package ggspectra
Absorbance axis labelsA_internal_label A_label A_total_label
Absorptance axis labelsAfr_label Rfr_total_label
Plot one or more irradiance-calibration spectra.autoplot.calibration_mspct autoplot.calibration_spct
Plot one or more detector-counts-per-second spectra.autoplot.cps_mspct autoplot.cps_spct
Plot one or more "filter" spectra.autoplot.filter_mspct autoplot.filter_spct
Plot one or more "object" spectra.autoplot.object_mspct autoplot.object_spct
Plot one or more raw-detector-counts spectra.autoplot.raw_mspct autoplot.raw_spct
Plot one or more reflector spectra.autoplot.reflector_mspct autoplot.reflector_spct
Plot one or more response spectra.autoplot.response_mspct autoplot.response_spct
Plot one or more light-source spectra.autoplot.source_mspct autoplot.source_spct
Create a complete ggplot for a waveband descriptor.autoplot.waveband
Add title, subtitle and caption to a spectral plotautotitle ggtitle_spct
Default text for axis labelsaxis_labels axis_labels_none axis_labels_uk axis_labels_uk_comma
Chose black vs. white color based on weighted mean of RGB channelsblack_or_white
Create a color checker chartcolor_chart
Raw-counts axis labelscounts_label
Counts-per-second axis labelscps_label
SI unit prefixesexponent2factor exponent2prefix exponent2prefix_name has_SI_prefix nearest_SI_exponent prefix2exponent prefix_name2exponent
Spectral data plots.geom_spct
Create a new ggplot plot from spectral data.ggplot ggplot.calibration_spct ggplot.cps_spct ggplot.filter_mspct ggplot.filter_spct ggplot.generic_mspct ggplot.generic_spct ggplot.object_mspct ggplot.object_spct ggplot.raw_spct ggplot.reflector_spct ggplot.response_spct ggplot.source_mspct ggplot.source_spct
Calibration multipliers axis labelsmultipliers_label
Multiple plot functionmultiplot
Deprecated plot methodsplot.generic_mspct plot.generic_spct plot.waveband
Reflectance axis labelsRfr_label Rfr_specular_label
Spectral irradiance axis labelss.e.irrad_label s.q.irrad_label
spectral response and action axis labelss.e.action_label s.e.response_label s.q.action_label s.q.response_label
Energy per photon x-scalescale_x_energy_eV_continuous scale_x_energy_J_continuous
Frequency x-scalescale_x_frequency_continuous
Wavenumber x-scalescale_x_wavenumber_continuous
Wavelength x-scalescale_x_wl_continuous
Absorbance y-scalescale_y_A_continuous scale_y_A_internal_continuous scale_y_A_total_continuous
Absorptance y-scalescale_y_Afr_continuous
Raw-counts y-scalescale_y_counts_continuous scale_y_counts_tg_continuous
Counts-per-second y-scalescale_y_cps_continuous
Calibration multipliers y-scalescale_y_multipliers_continuous
Reflectance y-scalescale_y_Rfr_continuous scale_y_Rfr_specular_continuous scale_y_Rfr_total_continuous
Spectral irradiance y-scalescale_y_s.e.irrad_continuous scale_y_s.e.irrad_log10 scale_y_s.q.irrad_continuous scale_y_s.q.irrad_log10
Spectral response and action y-scalesscale_y_s.e.action_continuous scale_y_s.e.response_continuous scale_y_s.q.action_continuous scale_y_s.q.response_continuous
Transmittance y-scalescale_y_Tfr_continuous scale_y_Tfr_internal_continuous scale_y_Tfr_total_continuous
Secondary axes for wavelengthssec_axis_energy_eV sec_axis_energy_J sec_axis_wl sec_axis_w_frequency sec_axis_w_number
Set defaults for autoplot annotationsset_annotations_default set_w.band_default
Formatter for plain labels discounting for SI multipliersSI_plain SI_pl_format
Formatter for tagged labels using SI multipliersSI_tagged SI_tg_format
Calculate colours from wavelength.stat_color
Find quantity value for target wavelength value.stat_find_qtys
Find wavelength for target quantity value.stat_find_wls
Label peaks and valleys.stat_label_peaks stat_label_valleys
Find peaks and valleys.stat_peaks stat_valleys
Find spikesstat_spikes
Draw colour boxes for wavebandsstat_wb_box
Integrate ranges under curve.stat_wb_column
Integrate ranges under spectral curve.stat_wb_contribution
Integrate ranges under curve.stat_wb_hbar
Integrate irradiance for wavebands.stat_wb_e_irrad stat_wb_irrad stat_wb_q_irrad
Label ranges under spectral curve.stat_wb_label
Integrate ranges under curve.stat_wb_mean
Integrate ranges under spectral curve.stat_wb_relative
Integrate spectral irradiance for wavebands.stat_wb_e_sirrad stat_wb_q_sirrad stat_wb_sirrad
Integrate ranges under spectral curve.stat_wb_total
Calculate colours from wavelength.stat_wl_strip wl_guide
Average area under curve for regions.stat_wl_summary
Transmittance axis labelsTfr_internal_label Tfr_label Tfr_total_label
Wave- axis labelsw_energy_eV_label w_energy_J_label w_frequency_label w_length_label w_number_label
Deprecated functionsw_frequency w_number