plotRaman: Plot raman spectra

Description Usage Arguments Examples

Description

Plot raman spectra

Usage

1
2
plotRaman(data, group = NULL, legendlocation = "topright",
  xlab = "Raman shift (1/cm)", ylab = "Counts", ...)

Arguments

data

matrix or hyperSpec class object

group

a vector of characters or factors describing categories

legendlocation

location of legend. can be anything from "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right" or "center".

xlab

x-axis label

ylab

y-axis label

...

extra arguments passing to plotspc or matplot

Examples

1
2
3
4
5
6
7
8
9
data(raman)
plotRaman(raman)
plotRaman(raman, col = "black") # all black
plotRaman(raman, cex.lab = 1.5) # bigger axis label
plotRaman(raman, col = cm.colors(47)) # change color pallette 

# plot by group
cultivar <- getText(rownames(raman), 2)
plotRaman(raman, group = cultivar)

chengvt/cheng documentation built on May 13, 2019, 3:52 p.m.