Skip to content

Adjust plotDiet() to Restrict Plots to Relevant Size Ranges #304

@JamesRimmerEco

Description

@JamesRimmerEco

When using the plotDiet() function, the diet plots currently extend all the way to w_max, regardless of whether there are any fish left at those sizes. This can make the plots misleading or less helpful for species with little or no biomass in the largest size classes, as they may show diet information for size ranges where the species is no longer present, extending to rare situations where diets would require negative intake rates for very large fish.

It might be helpful to adjust plotDiet() so that it only plots up to the largest size class where fish are present (i.e., where the abundance is greater than zero). This would ensure the plot better represents the relevant size ranges and provides more useful information to the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions