cv18_ewma {CleaningValidation} | R Documentation |
Generates an EWMA chart for a specified residue column grouped by cleaning events.
cv18_ewma(data, residue_col, cleaning_event_col, alpha = 0.2)
data |
A data frame containing the data set for analysis. |
residue_col |
The name of the column representing residue data. |
cleaning_event_col |
The name of the column representing cleaning events. |
alpha |
The smoothing parameter for the EWMA calculation, default is 0.2. |
A ggplot object representing the EWMA chart.
Chan, Mohamed, Lou, Wendy, Yang, Xiande [xiande.yang at gmail.com]
# Assuming 'Eq_Mic' is a data frame, 'Mic' is the residue column of interest,
# and 'CleaningEvent' is the column representing cleaning events.
ewma_plot <- cv18_ewma(data = Eq_Mic, residue_col = "Mic", cleaning_event_col = "CleaningEvent")
print(ewma_plot)