plotCUDot: CU-specific dot plot

View source: R/plotDots.R

plotCUDotR Documentation

CU-specific dot plot

Description

This function generates dot plots with credible intervals for performance metrics.

Usage

plotCUDot(
  cuDat,
  plotVar,
  group = "om",
  legendLab = NULL,
  xLab = NULL,
  yLab = NULL,
  plotTitle = NULL,
  axisSize = 14,
  dotSize = 4,
  lineSize = 1,
  legendSize = 14
)

Arguments

cuDat

Dataframe generated by buildCUDat.

plotVar

A character value corresponding to PM in cuDat$vars (can be either catch- or conservation-based).

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


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


CamFreshwater/samSim documentation built on Sept. 25, 2023, 10:22 a.m.