staRdom (version 1.0.3)

eempf_residuals_plot: Plot samples by means of whole sample, each single component and residuum

Description

A raster of plots is created. Each column shows one sample. The top n rows show the n components from the model according their occurance in the certain samples. The second last row shows the residual, not covered by any component in the model and the last row shows the whole sample.

Usage

eempf_residuals_plot(cp_out, eem_list, res_data = NULL, spp = 5,
  select = NULL, residuals_only = FALSE,
  cores = parallel::detectCores(logical = FALSE)/2)

Arguments

cp_out

object of class parafac containing the generated model

eem_list

object of class eemlist with all the samples that should be plotted

res_data

optional, data of sample residuals related to the model, output from eempf_residuals

spp

optional, samples per plot

select

optional, character vector of samples you want to plot

residuals_only

plot only residuals

cores

number of cores to use for parallel processing

Value

several ggplot objects

Details

eem_list may contain samples not used for modelling. The amount of contained components are then calculated by optim (via eempf_fit_sample). This especially interesting if outliers are excluded prior modelling and should be evaluated again afterwards.

Examples

Run this code
# NOT RUN {
data(eem_list)
data(pfres_comps1)

eempf_residuals_plot(pfres_comps[[3]],eem_list)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab