plot.cv_poisson_rt | R Documentation |
Plot cv_poisson_rt
## S3 method for class 'cv_poisson_rt'
plot(x, which_lambda = c("cv_scores", "lambda.min", "lambda.1se"), ...)
x |
result of cv_estimate_rt of class |
which_lambda |
select which Rt's to plot. If not provided, the cross validation score will be plotted. If provided a list of lambda, the corresponding Rt estimation will be plotted. If provided a string, it
must be either one of
|
... |
Not used. |
a ggplot2::ggplot
y <- c(1, rpois(100, dnorm(1:100, 50, 15) * 500 + 1))
cv <- cv_estimate_rt(y, korder = 1, nfold = 3, nsol = 30)
plot(cv)
plot(cv, which_lambda = cv$lambda[1])
plot(cv, which_lambda = "lambda.min")
plot(cv, which_lambda = "lambda.1se")
plot(cv, NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.