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
)
Produces a plot and returns a list that contains:
starting date
ending data
the number of data points
summary of the SYM counts
number of missing data
Data frame retrieved from ECDataExplorer as returned by the function
ch_read_ECDE_flows
.
Optional start date in the form yyyy-mm-dd. Default is NULL
.
Optional end date in the form yyyy-mm-dd. Default is NULL
.
If TRUE
(the default) shows the counts of SYM in the legend. If FALSE
the counts are omitted as in ECDE.
If FALSE
(the default), the y-axis scaling is determined by the time
period. If TRUE
then determined by the whole dataset.
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.
a dataframe of station metadata, default is HYDAT_list
.
Paul Whitfield
m_test <- ch_qa_hydrograph(CAN05AA008)
m_test <- ch_qa_hydrograph(CAN05AA008, st_date="1980-01-01", end_date="1999-12-31")
Run the code above in your browser using DataLab