View source: R/figures-parallel-coordinates.R
plot_parallel_coords | R Documentation |
Make parallel coordinates plot of performance metrics
plot_parallel_coords(
pm_df_list,
type = c("facet", "single"),
custom_pal = NULL,
groups = NULL,
rotate_labels = type == "facet",
french = isTRUE(getOption("french"))
)
pm_df_list |
A named list of performance metric data frames from
|
type |
The type of plot. Multipanel |
custom_pal |
An optional custom color palette. Should be a named character vector |
groups |
An optional grouping structure to separate the lines. For example, this allows for conservation and fisheries performance metrics to use distinct line segments. Should be a list with the performance metrics grouped. See the example below. |
rotate_labels |
Logical: rotate the performance metric labels 90 degrees? |
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_parallel_coords(pm)
plot_parallel_coords(pm, "single")
plot_parallel_coords(pm, groups = list(c("P40", "P100", "PNOF"), c("LTY", "AAVY")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.