View source: R/plot_rtforecast.R
| plot.rtforecast | R Documentation |
Draws to the current graphics device (matches normal R plotting
conventions - use grDevices::png()/grDevices::pdf() yourself
around the call if you want a file, the way you would for any base R
plot). Ports the "current situation" view from the original
run_rtforecast.R script.
## S3 method for class 'rtforecast'
plot(
x,
which = c("Rt", "forecast", "observed_vs_predicted"),
n_recent = 8,
...
)
x |
an |
which |
one of |
n_recent |
for |
... |
passed on to the underlying |
The input "rtforecast" object x, returned invisibly.
Called primarily for its side effect of drawing to the current
graphics device.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.