ch_polar_plot
Could be used to move data from a different type of analysis different to
the ch_binned_MannWhitney
function which uses flows. The two series need to be of the
same length and their length is related to the step size. For examples,
for five day periods there will be 73 periods.
ch_polar_plot_prep(
station,
plot_title,
step,
x0,
x1,
stat,
prob,
test_s,
variable = "discharge",
bin_method = "unstated",
test_method = "unstated",
lline1 = "Period 1",
lline2 = "Period 2",
pvalue = 0.05
)
Returns a list containing:
ID of station
Name of station
Name of variable
Smoothing time step in days
First range of years
Second range of years
p_value
TRUE if test failed due to missing values
Method used for binning
Mann-Whitney U
A data frame containing six columns
The series
data frame contains
period numbers i.e. 1:365/step
median values for each bin in period 1
median values for each bin in period 2
Mann Whitney U-statistic for each bin between the two periods
probability of U for each period
significance codes for each bin
Typically a station number
Polar plot title - usually a station name
The number of days binned
Time series of length n for a single seasonal cycle
Time series of length n for a single seasonal cycle
Time series of length n for statistical test value for each bin
Time series of length n of probability of test value
Vector with values of -1, 0, 1 for significance, -1 negative, 1 positive, 0 not significant
Name of variable plotted. Default is discharge
Default is unstated
Default is unstated
Names of first period, default is Period 1
Names of second period, default is Period 2
Value of p used. Default is 0.05
Paul Whitfield
Whitfield, P.H. and A.J. Cannon. 2000. Polar plotting of seasonal hydrologic and climatic data. Northwest Science 74: 76-80.
Whitfield, P.H., Cannon, A.J., 2000. Recent variations in climate and hydrology in Canada. Canadian Water Resources Journal 25: 19-65.
ch_binned_MannWhitney
ch_polar_plot