cclist: A data.frame produced by control_charts_pca, control_charts_sof_pc
regr_cc_fof, or regr_cc_sof.
id_num: An index number giving the observation in the phase II data set to be plotted, i.e. 1 for the first observation, 2 for the second, and so on.
which_plot: A character vector. Each value indicates which contribution you want to plot:
"T2" indicates contribution to the Hotelling's T2 statistic,
"spe" indicates contribution to the squared prediction error statistic.
print_id: A logical value, if TRUE, it prints also the id of the observation in the title of the ggplot. Default is FALSE.
Returns
A ggplot containing the contributions of functional variables to the monitoring statistics. Each plot is a bar plot, with bars corresponding to contribution values and horizontal black segments denoting corresponding (empirical) upper limits. Bars are coloured by red if contributions exceed their limit.