plot_radar: Create a radar plot

View source: R/figures-radar.R

plot_radarR Documentation

Create a radar plot

Description

Create a radar plot

Usage

plot_radar(
  pm_df,
  palette = "Set2",
  custom_pal = NULL,
  french = isTRUE(getOption("french")),
  ...
)

plot_radar_facet(
  pm_df_list,
  custom_pal = NULL,
  ncol = NULL,
  nrow = NULL,
  french = isTRUE(getOption("french")),
  ...
)

Arguments

pm_df

A performance metric data frame from get_probs().

palette

A palette color as recognized by ggplot2::scale_color_brewer()

custom_pal

A named character vector of custom colors to pass to ggplot2::scale_color_manual(). This argument is used in favour of palette if specified.

french

French?

...

Other arguments to pass to ggspider::spider_web() or plot_radar().

pm_df_list

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

ncol

An optional number of columns in the grid.

nrow

An optional number of rows in the grid.

Value

A ggplot object

Examples

probs <- get_probs(mse_example, "P40", "P100", "PNOF", "LTY", "AAVY")
plot_radar(probs)
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_radar_facet(pm)

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