plot_LOF_sp: Plot spectra colored by LOF values

plot_LOF_spR Documentation

Plot spectra colored by LOF values

Description

Plot spectra colored by LOF values

Usage

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
)

Arguments

obj

- LOF_obj object created with function get_LOF_by_class.

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 plotspc.

LOF_threshold

- LOF threshold values. Rows (lines) that have threshold above

x, y

position of legend. See legend.

colors

Colors names for LOF below and above threshold default are: c("black", "red").

LOF

- vector of lack-of-fit values for every row;

See Also

Other LOF_obj: get_LOF_by_class(), plot_LOF_MDS(), plot_LOF_hist(), plot_stacked()

Examples

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")


GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.