View source: R/figures-lollipop.R
plot_lollipop | R Documentation |
Make lollipop plot
plot_lollipop(
pm_df_list,
custom_pal = NULL,
dodge = 0.6,
pt_size = 2.25,
french = isTRUE(getOption("french"))
)
pm_df_list |
A named list of performance metric data frames from
|
custom_pal |
An optional custom color palette. Should be a named character vector |
dodge |
The amount to separate or "dodge" the lollipop lines. |
pt_size |
Point size |
french |
French |
A ggplot2 object
probs <- get_probs(mse_example, "P40", "P100", "PNOF", "LTY", "AAVY")
pm <- list()
pm[[1]] <- get_probs(mse_example, "P40", "P100", "PNOF", "LTY", "AAVY")
pm[[2]] <- get_probs(mse_example, "P40", "P100", "PNOF", "LTY", "AAVY")
names(pm) <- c("Scenario 1", "Scenario 2")
plot_lollipop(pm)
plot_lollipop(pm[1]) + ggplot2::scale_colour_brewer(palette = "Set2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.