plot.poisson_rt {rtestim} | R Documentation |
Plot estimated Rt values from a poisson_rt
object
Description
Produces 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.
Usage
## S3 method for class 'poisson_rt'
plot(x, lambda = NULL, ...)
Arguments
x |
output of the function |
lambda |
select which Rt's to plot. If not provided, all Rt's are plotted. |
... |
Not used. |
Value
Examples
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)
[Package rtestim version 1.0.0 Index]