Description Usage Arguments Value Examples
Function to create statistical process control (SPC) np-chart or p-chart from aviation safety datasets. Uses qcc:qcc() to generate SPC chart values and ggplot2 to generate the plot.
1 2 3 |
filename |
Name of CSV file on working directory to be consumed; expects specific formatting: First column contains dates in the format "Mmm, YYYY" Second column contains a count of events/issues/deficiencies Third column contains the number of relevant operations (i.e. flights) There should be no skipped months within dataset Ordered from oldest date first (top) to newest date last (bottom) |
title |
Optional plot title |
type |
Chart type; accepts np or p, default np |
group |
Date grouping for data to be plotted; accepts monthly or quarterly, default monthly |
enddate |
Ending date ; accepts lubridate functions, default last day of previous month from current date |
startdate |
Starting date for data to be plotted; accepts lubridate functions, default first day 24 months before current date |
SPC np-chart
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.