Internal worker shared by the plotFeedingLevel() methods. It assembles the
plotting data, optionally adds the critical feeding level, restricts to each
species' size range, converts to a length axis if requested and draws the
plot.
plot_feeding_level(
params,
feed,
species,
highlight,
all.sizes,
include_critical,
log_x,
log_y,
wlim,
llim,
size_axis,
return_data
)A mizer_plot (ggplot2) object, or the plotting data frame if
return_data = TRUE.
A MizerParams object.
Array of feeding levels (species by size).
The species to be plotted.
Name or vector of names of species to be highlighted.
If FALSE, feeding levels outside each species' size range
are removed.
Whether to also plot the critical feeding level.
Logical flags for log10 axes.
Numeric vectors of length two giving the weight and length limits.
Either "w" (weight) or "l" (length).
If TRUE, return the plotting data frame instead of the
plot.