Description Usage Arguments Value Examples
View source: R/plotTradeoffs.R
This function generates Kobe style plots for a series of conservation- and catch-based performance metrics.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
cuDat |
Dataframe generated by |
consVar |
A character value corresponding to a conservation based PM in cuDat$vars. |
catchVar |
A character value corresponding to a catch based PM in cuDat$vars. |
facet |
A character value that can take the values:
|
panel |
A character value that can take the values:
|
showUncertainty |
A logical specifying whether whiskers for each variable's credible interval should be plotted. |
hotColors |
A logical (default |
legendLab |
A character representing the legend title. |
xLab |
A character representing the x axis label. |
yLab |
A character representing the y axis label. |
main |
A logical specifying whether a plot title should be added. |
axisSize |
A number representing the font size for the axes. |
dotSize |
A number representing the dot size. |
lineSize |
A number representing the line width. |
legendSize |
A number representing the size of the legend text. |
freeY |
A logical specifying if the yaxis has variable axis dimentions across facets. |
scaleAxis |
A character vector that can take values 'c("fixed", "free", "free_x", "free_y")' that determines which axes, if any, have variable axes dimensions across facets. |
Returns a ggplot object.
1 2 3 4 | #plotCUTradeoff(cuPlottingDF, consVar = "medSpawners", catchVar = "medCatch",
#facet = "cu", panel = "om", showUncertainty = FALSE,
#legendLab = "Prop. TAC in mixed stock fishery", xLab = "Median Catch",
#yLab = "Median Spawners", main = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.