plot_LOF_sp.Rd
Plot spectra colored by LOF values
- LOF_obj
object created with function get_LOF_by_class
.
- type of plot, string wit one of the following: "data", "differences", "centers". May be abbreviated.
Either "TRUE" or vector with for stacking.
More details in plotspc
.
- LOF threshold values. Rows (lines) that have threshold above
position of legend. See legend
.
Colors names for LOF below and above threshold default are: c("black", "red")
.
- 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")
#> Warning: Function 'chk.hy' is deprecated.
#> Use function 'assert_hyperSpec' instead.
plot_LOF_sp(obj, "data", "gr")
#> Warning: Function 'chk.hy' is deprecated.
#> Use function 'assert_hyperSpec' instead.
#> Warning: Function 'function (...)
#> {
#> hySpc_deprecated("plot_spc")
#> plot_spc(...)
#> }' is deprecated.
#> Use function 'plot_spc' instead.
plot_LOF_sp(obj, "differences", "gr")
#> Warning: Function 'chk.hy' is deprecated.
#> Use function 'assert_hyperSpec' instead.
#> Warning: Function 'function (...)
#> {
#> hySpc_deprecated("plot_spc")
#> plot_spc(...)
#> }' is deprecated.
#> Use function 'plot_spc' instead.
plot_LOF_sp(obj, "centers", "gr")
#> Warning: Function 'chk.hy' is deprecated.
#> Use function 'assert_hyperSpec' instead.
#> Warning: Function 'function (...)
#> {
#> hySpc_deprecated("plot_spc")
#> plot_spc(...)
#> }' is deprecated.
#> Use function 'plot_spc' instead.