Skip to contents

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 estimate_rt() of class poisson_rt

lambda

select which Rt's to plot. If not provided, all Rt's are plotted.

...

Not used.

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)