plotAgDot | R Documentation |
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).
plotAgDot(
agDat,
group = "om",
legendLab = "Operating\nModel",
xLab = NULL,
yLab = NULL,
plotTitle = NULL,
axisSize = 14,
dotSize = 4,
lineSize = 1,
legendSize = 14
)
agDat |
Dataframe generated by |
group |
A character value that can take the values: |
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. |
Returns a ggplot object.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.