| plot.poisson_rt | R Documentation |
poisson_rt objectProduces a figure showing some or all estimated Rt values for different
values of the penalty. The result is a ggplot2::ggplot(). Additional user
modifications can be added as desired.
## S3 method for class 'poisson_rt'
plot(x, lambda = NULL, ...)
x |
output of the function |
lambda |
select which Rt's to plot. If not provided, all Rt's are plotted. |
... |
Not used. |
a ggplot2::ggplot
y <- c(1, rpois(100, dnorm(1:100, 50, 15) * 500 + 1))
out <- estimate_rt(y, lambda = log(c(1.1, 1.3, 1.5)))
plot(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.