gr_plot_minmonth {grwat} | R Documentation |
Plot minimum runoff month
Description
Generate a histogram of a minimum runoff month for two periods: before and after the change year set by year
parameter.
Usage
gr_plot_minmonth(
df,
year = NULL,
exclude = NULL,
tests = NULL,
pagebreak = FALSE,
print = TRUE
)
Arguments
df |
|
year |
Integer. Change year value to separate two periods. |
exclude |
Integer vector of years to be excluded from plotting. |
tests |
Tests list for the same variables (generated by |
pagebreak |
Logical. Whether to break page between plots (needed for reporting). Defaults to |
print |
Boolean. Print plot? Defaults to |
Value
list
of two ggplot2
objects, representing the histogram of a minimum runoff month for two periods: before and after the change year
Examples
library(grwat)
data(spas) # example Spas-Zagorye data is included with grwat package
# separate
sep = gr_separate(spas, params = gr_get_params(reg = 'center'))
# summarize from 1965 to 1990
vars = gr_summarize(sep, 1965, 1990)
# plot minimum runoff month for two periods divided by Pettitt test
gr_plot_minmonth(vars, tests = gr_test_vars(vars))
# plot minimum runoff month for two periods divided by fixed year
gr_plot_minmonth(vars, year = 1978)
[Package grwat version 0.0.4 Index]