Generates predicted draws from predict.RtGam and plots them with ggplot2. See the documentation on predict.RtGam for options on how to specify draws.
Usage
# S3 method for class 'RtGam'
plot(x, parameter = "obs_cases", alpha = 0.05, ...)
Arguments
- x
An
RtGam
object created using theRtGam()
function.- parameter
A character string specifying the prediction target. Options are
"obs_cases"
(observed cases),"r"
(growth rate), or"Rt"
(reproduction number). Default is"obs_cases"
.- alpha
The opacity of the lines on the plot. Should be between 0 and 1, with values closer to 0 producing more transparent lines.
- ...
Additional options to pass to
predict.RtGam()