Function to plot sex ratio by strata
PlotSexRatioStrata.fn.RdFunction to plot sex ratio by strata
Usage
PlotSexRatioStrata.fn(
dir = NULL,
dat,
type = "length",
strat.vars = c("Depth_m", "Latitude_dd"),
strat.df = NULL,
circleSize = 0.05,
dopng = lifecycle::deprecated(),
...
)Arguments
- dir
Directory where output will be saved. The directory where the file should be saved. If dir = NULL no output will be saved.
- dat
A data frame of length-composition data returned from
pull_bio().- type
Specify where to calculate the sex ration by length or age.
- strat.vars
Variables in both data frame that are used to define the strata. Default is bottom depth (m) and latitudes (decimal degrees), i.e.,
c("Depth_m", "Latitude_dd").- strat.df
A data frame that defines the strata and provides the calculated areas for each strata returned from
createStrataDF.fn().- circleSize
circle size
- dopng
Deprecated with nwfscSurvey 2.1 because providing a non-NULL value to
dircan serve the same purpose asdopng = TRUEwithout the potential for errors whendopng = TRUEanddir = NULL. Thus, users no longer have to specifydopngto save the plot as a png.- ...
Additional arguments for the plots