plotspc (flu)
## artificial example to show wavelength axis cutting
plotspc (chondro [sample (nrow (chondro), 50)],
wl.range = list (600 ~ 650, 1000 ~ 1100, 1600 ~ 1700),
xoffset = c (0, 300, 450))
plotspc (chondro [sample (nrow (chondro), 50)],
wl.range = list (600 ~ 650, 1000 ~ 1100, 1600 ~ 1700),
xoffset = c (300, 450))
## some journals publish Raman spectra backwards
plotspc (chondro [sample (nrow (chondro), 50)], wl.reverse = TRUE)
plotspc (laser[(0:4)*20+1,,], stacked = TRUE)
plotspc (laser, func = mean_pm_sd,
col = c(NA, "red", "black"), lines.args = list (lwd = 2),
fill = c (1, NA, 1),
fill.col = "yellow", border = "blue",
polygon.args = list (lty = 2, lwd = 4),
title.args = list (xlab = expression (lambda[emission] / nm),
ylab = list(line = 3.4)),
axis.args = list (x = list (col = "magenta"), y = list (las = 1))
)
groups <- rep (1 : 3, length.out = nrow (chondro))
mean.pm.sd <- aggregate (chondro, groups, mean_pm_sd)
plot (mean.pm.sd, col = matlab.palette (3), fill = ".aggregate", stacked = ".aggregate")
Run the code above in your browser using DataLab