View source: R/plot-pacea-index.R
plot_red_blue | R Documentation |
Adapted from https://stackoverflow.com/questions/74902499/shading-below-line-graph-in-r/74903305#74903305 and interpolated.
plot_red_blue(obj_lub, value, xlab, ylab, type, ...)
obj_lub |
obj a 'pacea_index' object, which is a time series, with a date column that is the lubridate 'date' class. |
value |
which column of 'obj' to plot |
xlab |
x-axis label |
ylab |
y-axis label, the default is an attribute of the 'pacea_index' object. |
type |
usual argument for 'plot()' |
... |
optional arguments passed onto 'plot()'. Note that the x-axis is constructed using a lubridate 'date' object, so 'xlim' needs to be a 'date' object (see example). |
plot of time series
Andrew Edwards
## Not run:
# see plot.pacea_index()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.