Description Usage Arguments Details Value Author(s) See Also Examples
Spectra plotting with ggplot2
1 2 |
x |
hyperSpec object |
wl.range |
wavelength ranges to plot |
... |
handed to |
mapping |
see |
spc.nmax |
maximum number of spectra to plot |
map.lineonly |
if |
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 | 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 ~ .)
|
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
Warning message:
In qplotspc(chondro) :
Number of spectra exceeds spc.nmax. Only the first 10 are plotted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.