Function showing the diet proportion of predators

plotDiet2(sim, species = NULL, xlim = c(1, NA), returnData = F)

Arguments

sim

An object if class MizerSim

species

A character string of the species name. If NULL, all species are shwon as facets. Default is NULL

xlim

A numeric vector of length two providing lower and upper limits for the x axis. Use NA to refer to the existing minimum or maximum. Default is c(1,NA).

returnData

A boolean value that determines whether to return the plot or the data itself. Default is FALSE