View source: R/animateSpectra.R
animateSpectra | R Documentation |
animateSpectra(
sim,
species = NULL,
resources = NULL,
time_range,
wlim = c(NA, NA),
ylim = c(NA, NA),
power = 1,
total = FALSE
)
sim |
A MizerSim object |
species |
Name or vector of names of the species to be plotted. By default all species are plotted. |
resources |
Name or vector of names of the resources to be plotted. By default all resources are plotted. |
time_range |
The time range to animate over. Either a vector of values or a vector of min and max time. Default is the entire time range of the simulation. |
wlim |
A numeric vector of length two providing lower and upper limits for the w axis. Use NA to refer to the existing minimum or maximum. |
ylim |
A numeric vector of length two providing lower and upper limits for the y axis. Use NA to refer to the existing minimum or maximum. Any values below 1e-20 are always cut off. |
power |
The abundance is plotted as the number density times the weight
raised to |
total |
A boolean value that determines whether the total over all species in the system is plotted as well. Default is FALSE. |
A plotly object
Other plotting functions:
plotDiet()
,
plotResourceLevel()
,
plotResourcePred()
,
plotSpectra()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.