plotRadar | R Documentation |
This function generates a radar plot. Note that PMs on different scales (e.g. proportional abundance vs. absolute abundance) should not be plotted together. If it shouldn't share a y-axis label, it shouldn't be in a radar plot! Also cannot facet so should only be passed one OM and multiple MPs or vice versa. Includes helper function coordRadar.
plotRadar(
dat,
xLab,
plotVars = NULL,
groupingVar = NULL,
cu = FALSE,
mainLab = NULL,
legendLab = NULL,
axisSize = 13
)
xLab |
A character representing the x axis label. |
mainLab |
A character representing the main label |
legendLab |
A character representing the legend title. |
cuDat |
Dataframe generated by |
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: |
Returns a ggplot object.
trimDat <- agPlottingDF %>%
dplyr::filter(var %in% c("ppnCULower", "ppnCUStable", "ppnFisheriesOpen")) %>%
dplyr::mutate(var = factor(var))
plotRadar(trimDat, xLab = c("CUs\nLower BM", "CUs\nStable", "Fisheries\n Open"),
plotVars = NULL, groupingVar = NULL, cu = FALSE,
legendLab = "Proportion\nTAC in\nMixed Catch", axisSize = 13)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.