plot.sensmod | R Documentation |
sensmodel()
Plot absorbance spectra from sensmodel()
## S3 method for class 'sensmod'
plot(
x,
select = NULL,
type = c("overlay", "stack", "heatmap"),
varying = NULL,
n = 100,
labels = FALSE,
labels.stack = NULL,
labels.cex = 1,
wl.guide = TRUE,
...
)
x |
(required) a data frame, possibly an object of class |
select |
specification of which spectra to plot. Can be a numeric vector
or factor (e.g., |
type |
what type of plot should be drawn. Possibilities are:
|
varying |
a numeric vector giving values for y-axis in
|
n |
number of bins with which to interpolate colors and |
labels |
logical. Add labels identifying each spectrum to the outer plot
margin? Defaults to |
labels.stack |
a vector of labels for spectra when |
labels.cex |
size of the text labels when |
wl.guide |
logical determining whether visible light spectrum should be added to the x-axis. |
... |
additional arguments passed to |
plot.rspec()
, sensmodel()
# Blue tit visual system based on Hart et al (2000)
bluesens <- sensmodel(c(371, 448, 502, 563),
beta = FALSE,
lambdacut = c(330, 413, 507, 572),
oiltype = c("T", "C", "Y", "R"), om = TRUE
)
plot(bluesens)
# Alternatively, you can specify your own ylab
plot(bluesens, ylab = "absor.")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.