Creates a raster plot plus trend plots for day of year, which are binned by a number of days (step), and the max, min, and median annual discharge across years. The plot contains four panels based upon binned data.
ch_flow_raster_trend(
DF,
step = 5,
missing = FALSE,
metadata = NULL,
colours = c("lightblue", "cyan", "blue", "slateblue", "darkblue", "red")
)
Returns a list containing:
Station ID eg. 05BB001
How missing values were used FALSE = used, TRUE = removed
number of days in a bin
number of periods in a year
period numbers i.e. 1:365/step
values for each period in each year
median for each period
maximum for each period
minimum for each period
Kendalls Tau for each period
probability of Tau for each period
years spanning the data
median bin for each year
maximum bin for each year
minimum bin for each year
value of tau and probability for annual median
value of tau and probability for annual maximum
value of tau and probability for annual minimum
- dataframe of daily flow data as read by ch_read_ECDE_flows
- a number indicating the degree of smoothing eg. 1, 5, 11.
If FALSE
years with missing data are excluded.
If TRUE
partial years are included.
a dataframe of station metadata, default is HYDAT_list.
A vector of colours used for the raster plot.
The default is c("lightblue","cyan", "blue", "slateblue",
"darkblue", "red")
.
Paul Whitfield
The four plots are: (1) The maximum,minimum,and median flow with a trend test for each period: red arrows indicate decreases, blue arrows indicate increases. (2) The scale bar for the colours used in the raster plot, (3) The raster plot with a colour for each period and each year where data exist, and (4) A time series plot of the minimum, median, and maximum annual bin values. If there is no trend (p > 0.05) the points are black. Decreasing trends are in red, increasing trends are in blue.
Whitfield, P. H., Kraaijenbrink, P. D. A., Shook, K. R., and Pomeroy, J. W. 2021. The Spatial Extent of Hydrological and Landscape Changes across the Mountains and Prairies of Canada in the Mackenzie and Nelson River Basins Based on data from a Warm Season Time Window, Hydrology and Earth Systems Sciences 25: 2513-2541.
ch_flow_raster
data(CAN05AA008)
mplot <- ch_flow_raster_trend(CAN05AA008, step=5)
Run the code above in your browser using DataLab