This function takes as input a data frame produced with functions such as control_charts_pca and control_charts_sof_pc and produces a ggplot with the desired control charts, i.e. it plots a point for each observation in the phase II data set against the corresponding control limits.
plot_control_charts(cclist, nobsI =0)
Arguments
cclist: A data.frame produced by control_charts_pca, control_charts_sof_pc
regr_cc_fof, or regr_cc_sof.
nobsI: An integer indicating the first observations that are plotted in gray. It is useful when one wants to plot the phase I data set together with the phase II data. In that case, one needs to indicate the number of phase I observations included in cclist. Default is zero.
Returns
A ggplot with the functional control charts.
Details
Out-of-control points are signaled by colouring them in red.