ch_qa_hydrograph {CSHShydRology} | R Documentation |
Plots a hydrograph of a WSC daily data file read from from ECDataExplorer (ECDE). The hydrograph shows individual days with data quality symbols [SYM] in colour and counts cases of each and reports them in the legend. The colours and symbols are those produced by ECDataExplorer.
There is an option is to provide start and end dates to show only part of the time period for which data exists and the plot is annotated to indicate this. Counts of missing observations is also provided in the legend.
ch_qa_hydrograph(
DF,
st_date = NULL,
end_date = NULL,
cts = TRUE,
rescale = FALSE,
sym_col = c("black", "green", "cyan", "yellow", "red", "white"),
metadata = NULL
)
DF |
Data frame retrieved from ECDataExplorer as returned by the function
|
st_date |
Optional start date in the form yyyy-mm-dd. Default is |
end_date |
Optional end date in the form yyyy-mm-dd. Default is |
cts |
If |
rescale |
If |
sym_col |
Colours used for SYM; default is those used in ECDE ("black", "green", "cyan","yellow", "red", "white"). The final "white" can be changed to highlight missing data points. |
metadata |
a dataframe of station metadata, default is |
Produces a plot and returns a list that contains:
station name or title used |
|
st_date |
starting date |
end_date |
ending data |
n |
the number of data points |
sym_count |
summary of the SYM counts |
missing |
number of missing data |
Paul Whitfield
m_test <- ch_qa_hydrograph(CAN05AA008)
m_test <- ch_qa_hydrograph(CAN05AA008, st_date="1980-01-01", end_date="1999-12-31")