Learn R Programming

ChemoSpec (version 3.0-1)

specSurvey: Plot Measures of Central Tendency and Spread for a Spectra Object

Description

This function computes and plots various measures of central tendency and spread for a "Spectra" object. Several different measures/spreads are available. The computation can be done by group or using the entire data set.

Usage

specSurvey(spectra, method = c("sd", "sem", "sem95", "mad", "iqr"),
by.gr = TRUE, ...)

Arguments

spectra
An object of S3 class "Spectra" to be analyzed.
method
One of c("sd", "sem", "sem95", "mad", "iqr"). sd plots the mean +/- the standard deviation, sem computes the mean +/- the standard error of the mean, sem95 computes the mean +/- the standard error at th
by.gr
Logical, indicating if the analysis is to be done by group or not.
...
Additional parameters to be passed to the plotting routines.

Value

  • None; side effect is a plot

References

https://github.com/bryanhanson/ChemoSpec

Examples

Run this code
data(CuticleIR)
myt <- expression(bolditalic(Portulaca)~bolditalic(oleracea)~bold(Cuticle~IR~Spectra))
specSurvey(CuticleIR, method = "iqr", main = myt)

Run the code above in your browser using DataLab