The ggplot2 counterpart of plot.popPolls(): polls as points, trends
as lines, for trends with a variance, uncertainty bands and the events in
object$events as vertical lines. The result is
an ordinary ggplot object that can be extended with further layers, scales
and themes.
Usage
# S3 method for class 'popPolls'
autoplot(object, ..., bands = TRUE, level = 0.95, xlim = NULL, events = TRUE)Examples
if (FALSE) { # \dontrun{
library(ggplot2)
de = popRead('DE-parliament')
de = popAddTrend(de, name = 'kalman', type = 'kalman')
autoplot(de, xlim = c('2024-01-01', NA)) + theme_minimal()
} # }