"plot"( x, color=NULL, subset=NULL, main=TRUE, legend=TRUE, CCT=FALSE, add=FALSE, ... )
color=NULL
then colors are computed from the spectra themselves.
If the type
of x
is 'material'
the color is computed using
illuminant D65.1nm
and responder BT.709.RGB
with no further normalization.
Otherwise the spectrum color is faked by changing its quantity
to 'power'
and taking the product
with BT.709.RGB
.
The resulting RGBs are normalized to have a maximum of 1.
This RGB normalization is done before processing the subset
argument.
If color='auto'
then a suitable set of colors is generated using
colorRampPalette
.
Otherwise color
is passed along to lines
as the col
argument,
e.g. col='black'
.
x
to plot; see subset
for acceptable arguments.main=TRUE
then a main title is generated from the file 'path'
in
the metadata
list, or from deparse(substitute(x))
.
If main=FALSE
then no main title is displayed.
And if main
is a string then that string is used as the main title.
CCT=TRUE
and the type
of x
is 'light'
then
the CCT of each spectrum is added to the legend; see computeCCT
.
add=TRUE
then lines are added to an existing plot,
and these arguments are ignored:
main
, ylab
, xlim
, ylim
,
and log
; see Details.
TRUE
or FALSE
lty, lwd
lines
, with no checks
pch
pch
is an integer, it is passed on to points
which adds points on top of the lines
ylab
ylab
is a string
then it is passed on to plot.default
,
otherwise suitable default string is generated.
xlim, ylim
xlim
and ylim
are 2-vectors, they are passed
to plot.default
.
If one of the components is NA
then a suitable default is supplied.
log
plot.default
.
Care must be taken for y
because
many spectra are 0 at some wavelengths, and even negative. Use ylim
in such cases.print
,
summary
in base.print( xyz1931.1nm )
xyz1931.1nm # same thing, just calls print()
Run the code above in your browser using DataLab