plot_LOF_MDS: Plot MDS of LOF_obj data

plot_LOF_MDSR Documentation

Plot MDS of LOF_obj data

Description

Plot MDS of LOF_obj data

Usage

plot_LOF_MDS(
  obj,
  type = c("data", "differences", "centers"),
  LOF_threshold = 10,
  x = "topright",
  y = NULL,
  colors = c("black", "red"),
  LOF = NULL
)

Arguments

obj

- either "LOF_obj" object or "hyperspec" object.

type

- type of plot, string wit one of the following: "data", "differences", "centers". May be abbreviated.

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_hist(), plot_LOF_sp(), plot_stacked()

Examples

library(spHelper)
obj <- get_LOF_by_class(Spectra2, "class")

plot_LOF_MDS(obj, "data",        x = NULL)
plot_LOF_MDS(obj, "differences", x = NULL)
plot_LOF_MDS(obj, "centers",     x = NULL)


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