Description Usage Arguments Details Value Examples
Assess the relations between two decomposed variables
1 2 |
x |
List of decomposed objects |
fun |
Function to sumarize dependence (like |
wet_int_only |
(logical) Should only the wet intervals be considered? |
wet_int_thr |
Numeric value specifying the minimum depth to be consider wet |
exclude_below |
Some of the intervals might not be of required length, e.g. D10 interval may have less than 10 days available. The |
vcompare compares the relation between all pairs of variables included in x, typically precipitation and temperature, but other variables may be included also (e.g. runoff).
data.table summarizing the relation with columns:
factor indicating the variable
specification of the averaging length with 'D' - day(s), 'M' - month(s), 'Y' - year(s) and 'G1' - the overall mean
averaging length in hours
indication of the aggregating scale specified by agg_by argument
factor indicating the data sets from x with labels given by names(x)
value of fun
1 2 3 4 5 6 7 8 9 10 11 12 | library(ggplot2)
data(basin_PT)
## Not run:
dobs = decomp(basin_PT[['obs_ctrl']])
dctrl = decomp(basin_PT[['sim_ctrl']])
d = vcompare(x = list(OBS = dobs, CTRL = dctrl), fun = cov)
ggplot(d[period!='G1']) +
geom_line(aes(x = TS, y = value, col = factor(sub_period))) +
facet_grid(VARS~ID) +
scale_x_log10()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.