StatisticResults_MCRPURE_mdatools Class
Source:R/class_StatisticResults_MCRPURE_mdatools.R
StatisticResults_MCRPURE_mdatools.Rd
Class for storing results of MCR-PURE models created with the mdatools package.
Usage
StatisticResults_MCRPURE_mdatools(model = list())
# S3 method for class 'StatisticResults_MCRPURE_mdatools'
validate_object(x)
# S3 method for class 'StatisticResults_MCRPURE_mdatools'
summary(object, ...)
# S3 method for class 'StatisticResults_MCRPURE_mdatools'
plot_overview(x, ...)
# S3 method for class 'StatisticResults_MCRPURE_mdatools'
get_model_data(x)
# S3 method for class 'StatisticResults_MCRPURE_mdatools'
predict(x, data)
# S3 method for class 'StatisticResults_MCRPURE_mdatools'
test(x, data)
# S3 method for class 'StatisticResults_MCRPURE_mdatools'
plot_explained_variance(
x,
interactive = TRUE,
xLab = NULL,
yLab = NULL,
title = NULL,
showText = TRUE,
showLegend = TRUE
)
# S3 method for class 'StatisticResults_MCRPURE_mdatools'
plot_cumulative_explained_variance(
x,
interactive = TRUE,
xLab = NULL,
yLab = NULL,
title = NULL,
showText = TRUE,
showLegend = TRUE
)
# S3 method for class 'StatisticResults_MCRPURE_mdatools'
plot_resolved_spectra(
x,
interactive = TRUE,
pcs = NULL,
xLab = NULL,
yLab = NULL,
title = NULL,
showText = TRUE,
showLegend = TRUE
)
# S3 method for class 'StatisticResults_MCRPURE_mdatools'
plot_contributions(
x,
interactive = TRUE,
pcs = NULL,
xLab = NULL,
yLab = NULL,
title = NULL
)
Arguments
- model
A
mcrpure
object created with the mdatools package.- x
A
StatisticResults_MCRPURE_mdatools
object.- object
A
StatisticResults_MCRPURE_mdatools
object.- ...
Additional arguments passed to the plot function.
- data
A data frame containing the new data to test or predict.
- interactive
Logical (length 1). When
TRUE
, the data is plotted interactively using plotly.- xLab
A string with the title for the x axis.
- yLab
A string with the title for the y axis.
- title
A string with the title.
- showText
Logical (length 1), set to
TRUE
to show the text annotations.- showLegend
Logical (length 1). Set to
TRUE
to show legend.- pcs
A vector of integers specifying the principal components to plot. If NULL, all components are plotted.
Methods (by generic)
validate_object(StatisticResults_MCRPURE_mdatools)
: Validate the object, return NULL if valid.summary(StatisticResults_MCRPURE_mdatools)
: Print a summary of the model.plot_overview(StatisticResults_MCRPURE_mdatools)
: Plot the explained variance of the MCRPURE model.get_model_data(StatisticResults_MCRPURE_mdatools)
: Get the model data as a list of data frames.predict(StatisticResults_MCRPURE_mdatools)
: Predict new data using the MCRPURE model.test(StatisticResults_MCRPURE_mdatools)
: Test new data using the MCRPURE model.plot_explained_variance(StatisticResults_MCRPURE_mdatools)
: Plot the explained variance of the model.plot_cumulative_explained_variance(StatisticResults_MCRPURE_mdatools)
: Plot the cumulative explained variance of the model.plot_resolved_spectra(StatisticResults_MCRPURE_mdatools)
: Plot the resolved spectra of the MCRPURE model.plot_contributions(StatisticResults_MCRPURE_mdatools)
: Plot the contributions of the resolved spectra.