plotCUDot: CU-specific dot plot

Description Usage Arguments Value Examples

View source: R/plotDots.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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.

axisSize

A number representing the font size for the axis.

dotSize

A number representing the dot size.

lineSize

A number representing the line size.

legendSize

A number representing the font size for the legend.

Value

Returns a ggplot object.

Examples

1
2
3
4
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)

TESA-workshops/TESAsamSim documentation built on Feb. 6, 2021, 12:25 a.m.