plot_LOF_sp | R Documentation |
Plot spectra colored by LOF values
plot_LOF_sp(
obj,
type = c("data", "differences", "centers"),
stacked = TRUE,
LOF_threshold = 10,
x = "topleft",
y = NULL,
colors = c("black", "red"),
LOF = obj$LOF
)
obj |
- |
type |
- type of plot, string wit one of the following: "data", "differences", "centers". May be abbreviated. |
stacked |
Either "TRUE" or vector with for stacking.
More details in |
LOF_threshold |
- LOF threshold values. Rows (lines) that have threshold above |
x, y |
position of legend. See |
colors |
Colors names for LOF below and above threshold default are: |
LOF |
- vector of lack-of-fit values for every row; |
Other LOF_obj:
get_LOF_by_class()
,
plot_LOF_MDS()
,
plot_LOF_hist()
,
plot_stacked()
library(spHelper)
obj <- get_LOF_by_class(Spectra2, "gr")
plot_LOF_sp(obj, "data", "gr")
plot_LOF_sp(obj, "differences", "gr")
plot_LOF_sp(obj, "centers", "gr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.