Description Usage Arguments Details Value Author(s) See Also Examples
Spectra plotting with ggplot2
1 2 3 | qplotspc(x, wl.range, ..., mapping = aes_string(x = ".wavelength", y = "spc",
group = ".rownames"), spc.nmax = hy.getOption("ggplot.spc.nmax"),
map.lineonly = FALSE, debuglevel = hy.getOption("debuglevel"))
|
x |
hyperSpec object |
wl.range |
wavelength ranges to plot |
... |
handed to |
mapping |
see |
spc.nmax |
maximum number of spectra to plot |
map.lineonly |
if |
debuglevel |
if > 0, additional debug output is produced |
These functions are still experimental and may change substantially in future.
a ggplot
object
Claudia Beleites
1 2 3 4 5 6 7 8 9 10 11 | qplotspc (chondro)
qplotspc (paracetamol, c (2800 ~ max, min ~ 1800)) + scale_x_reverse (breaks = seq (0, 3200, 400))
qplotspc (aggregate (chondro, chondro$clusters, mean),
mapping = aes (x = .wavelength, y = spc, colour = clusters)) +
facet_grid (clusters ~ .)
qplotspc (aggregate (chondro, chondro$clusters, mean_pm_sd),
mapping = aes (x = .wavelength, y = spc, colour = clusters, group = .rownames)) +
facet_grid (clusters ~ .)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.