Description Usage Arguments Value Examples
plots a prediction or error calculation of a pollyvote object. Internally,
either predict.pollyvote
or error_calc.pollyvote
are called and plotted using ggplot2
.
1 2 3 |
x |
[ |
.prediction_method |
[ |
.error_calc_method |
[ |
... |
additional arguments to the predict or error_calc_method function.
Most commonly used might be |
a ggplot object that can be further modified.
1 2 3 4 5 | pv = create_pollyvote(perm_countries = "D")
data("polls_individual")
pv = add_data(pv, newdata = polls_individual, country = "D", region = "national",
source_type = "poll", election = "BTW")
p <- plot(pv, .prediction_method = "pollyvote")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.