Function to plot sex ratio
PlotSexRatio.fn.RdFunction to plot sex ratio
Usage
PlotSexRatio.fn(
dir,
dat,
data.type = "length",
main = NULL,
circleSize = 0.1,
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
Data object with biological data from
pull_bio()with a column namedSexpresent.- data.type
Specify where to calculate the sex ration by length or age.
- main
Name that will be used to name the saved png
- 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