gr_report {grwat} | R Documentation |
Report hydrograph separation and variables
Description
This function generates a graphical HTML report that summarizes separation of hydrograph, its variables and their statistical properties. See example report generated by this command for spas
dataset included in grwat package.
Usage
gr_report(
sep,
vars,
output = "Report.html",
year = NULL,
exclude = NULL,
temp = FALSE,
prec = FALSE,
span = 5,
locale = "EN"
)
Arguments
sep |
|
vars |
|
output |
Character string path to the output file. Must have |
year |
Integer value of year used to divide series in two samples compared by Student and Fisher tests. Defaults to |
exclude |
Integer vector of years to be excluded from reporting. Defaults to |
temp |
Boolean. Plot temperature on the top of hydrograph? Defaults to |
prec |
Boolean. Plot precipitation on the top of hydrograph? Defaults to |
span |
Integer number of days to accumulate precipitation for plotting. Defaults to |
locale |
Character string locale. Currently only English ( |
Value
No return value, called for side effects
Examples
## Not run:
if (require("knitr") && require("rmarkdown") && require("kableExtra")) {
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
vars = gr_summarize(sep)
# report
report = '~/Spas-Zagorye.html'
gr_report(sep, vars, output = report)
browseURL(report)
}
## End(Not run)