When size_axis = "l", adds a length column l computed from the weight
column w using each species' weight-length relationship. For
size_axis = "w" the data is returned unchanged.
convert_plot_size_axis(
plot_dat,
params,
size_axis,
species_col = "Species",
drop_w = TRUE
)The plotting data, with a length column l added (and w optionally
dropped) when size_axis = "l".
A data frame of plotting data with a w column and a species
column.
A MizerParams object providing the weight-length parameters.
Either "w" (weight) or "l" (length).
Name of the column identifying the species. Default is
"Species".
If TRUE (default), the w column is dropped once l has been
computed.