sample_plot | R Documentation |
This function provides a easy interface for simple plots.
sample_plot(cube, sample, id, summary = TRUE, loc = mean, disp = sd, ylab, ...)
cube |
The hyperspectral cube returned by the function |
sample |
An object returned be the function |
id |
Optional specification of the samples to be used. Default to use all samples. |
summary |
Logical. Should every pixel be plotted or descriptive statistics? |
loc |
If summary is TRUE, the location function to be used. Defaults
to |
disp |
If summary is TRUE, the dispersion function to be used.
Defaults to |
... |
Arguments to be passed to |
This function provides a simple visualization for point (or circle)
or line samples taken with the function cube_sample
. The cube_rgb is
called to show the spatial position of the samples and a second plot is
called to plot the samples per wavelength. Note that by default, the ylab
will be expression(rho~(unitless)) if not provided.
The location and dispersion metric functions should return a single value per
sample. Read the documentation of sample_stat
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.