Plot a timeseries with uncertainty represented as a grey polygon with the option of adding a second series to the plot
1 2 3 4 |
d |
dataframe with columns representing each of the ys (could rename d to be the main series?) |
xs |
vector of xs corresponding with the columns of d (if NULL, names of d are used) |
d2 |
a dataframe with the same number of columns as d used to add a second series as a line plot (same xs are used) |
probs |
quantile probabilities for plotting |
xlab |
x-axis label |
ylab |
y-axis label |
main |
main label |
save |
logical to specify whether the plot should be saved (if TRUE a
file_name must be supplied) if TRUE calls |
file_name |
valid file name list to store model results passed to
|
file_type |
default = png, passed to |
graph_pars |
graphical parameters passed to par |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.