plotRadar: Radar plot

View source: R/plotRadar.R

plotRadarR Documentation

Radar plot

Description

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.

Usage

plotRadar(
  dat,
  xLab,
  plotVars = NULL,
  groupingVar = NULL,
  cu = FALSE,
  mainLab = NULL,
  legendLab = NULL,
  axisSize = 13
)

Arguments

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 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.

Value

Returns a ggplot object.

Examples

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)


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