plotAgDot: Aggregate dot plot

View source: R/plotDots.R

plotAgDotR Documentation

Aggregate dot plot

Description

This function generates dot plots with credible intervals for performance metrics. Note that for aggregate data, variables should be filtered from dataframe before it is passed as an argument (i.e. plots all variables by default).

Usage

plotAgDot(
  agDat,
  group = "om",
  legendLab = "Operating\nModel",
  xLab = NULL,
  yLab = NULL,
  plotTitle = NULL,
  axisSize = 14,
  dotSize = 4,
  lineSize = 1,
  legendSize = 14
)

Arguments

agDat

Dataframe generated by buildCUDat.

group

A character value that can take the values: "mp", "om" and specifies along which categorical variable dot plots should be grouped.

legendLab

A character representing the legend title.

xLab

A character representing the x axis label.

yLab

A character representing the y axis label.

plotTitle

A character representing the main plot title.

Value

Returns a ggplot object.

Examples

trimDat <- agPlottingDF %>%
dplyr::filter(var %in% c("medSpawners", "medCatch", "ppnCULower", "ppnCUExtinct"))

plotAgDot(trimDat, group = "om",
         legendLab = "Secondary MPs", xLab = "Proportion Mixed Stock TAC",
         yLab = "Median Catch", axisSize = 14, dotSize = 4, lineSize = 1,
         legendSize = 14)


Pacific-salmon-assess/samSim documentation built on Jan. 20, 2025, 11:17 a.m.