plotmat: Plot spectra matrix

Description Usage Arguments Details Author(s) See Also Examples

Description

plots the spectra matrix.

Usage

1
2
3
4
5
6
7
8
plotmat(
  object,
  y = ".row",
  ylab,
  col = alois.palette(20),
  ...,
  contour = FALSE
)

Arguments

object

hyperSpec object

y

character giving the name of the extra data column to label the y axis.

ylab

y axis label, defaults to "row" and the label of the extra data column used for the y axis, respectively.

col

see image

...

further parameters for image

contour

should contour be called instead of image?

Details

If package plotrix is available, a color legend is plotted to the right. The right margin is set to at least 5 lines.

Author(s)

Claudia Beleites

See Also

image, contour, levelplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plotmat (laser, col = alois.palette (100))

plot (laser, "mat")

plotmat (laser)
plotmat (laser, contour = TRUE, add = TRUE)

## use different y axis labels

plotmat (laser, "t")

plotmat (laser, laser$t / 3600, ylab = "t / h")

Example output

Loading required package: lattice
Loading required package: grid
Loading required package: ggplot2
Package hyperSpec, version 0.98-20161118

To get started, try
   vignette ("introduction", package = "hyperSpec")
   package?hyperSpec 
   vignette (package = "hyperSpec")

If you use this package please cite it appropriately.
   citation("hyperSpec")
will give you the correct reference.

The project homepage is http://hyperspec.r-forge.r-project.org


Loading required namespace: plotrix

hyperSpec documentation built on Sept. 13, 2021, 5:09 p.m.