plot_lollipop: Make lollipop plot

View source: R/figures-lollipop.R

plot_lollipopR Documentation

Make lollipop plot

Description

Make lollipop plot

Usage

plot_lollipop(
  pm_df_list,
  custom_pal = NULL,
  dodge = 0.6,
  pt_size = 2.25,
  french = isTRUE(getOption("french"))
)

Arguments

pm_df_list

A named list of performance metric data frames from get_probs(). The names will be used as the plot labels. Can also be a single data frame from get_probs().

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

Value

A ggplot2 object

Examples

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")

pbs-assess/ggmse documentation built on Nov. 21, 2023, 8:06 p.m.