View source: R/ArraySpeciesBySize-class.R
| plot2 | R Documentation |
plot2() compares two compatible mizer array objects in a single ggplot.
Colours identify species or groups, and linetype identifies which object
the values came from.
plot2(
x,
y,
name1 = "First",
name2 = "Second",
species = NULL,
log_x,
log_y,
log = NULL,
ylim = c(NA, NA),
total = FALSE,
background = TRUE,
highlight = NULL,
y_ticks = 6,
...
)
x |
The first of two compatible mizer array objects to compare.
Can be an |
y |
The second mizer array object, compatible with |
name1, name2 |
Labels for the two objects, used in the linetype legend. |
species |
Character vector of species to include. |
log_x |
If |
log_y |
If |
log |
Character string specifying which axes should use log10 scales,
in the same form as the base |
ylim |
A numeric vector of length two providing lower and upper limits
for the value (y) axis. Use |
total |
A boolean value that determines whether the total is plotted
as well. The total is the total of everything the array holds, every
species and every size, whatever is drawn. Default is |
background |
A boolean value that determines whether background species
are included. Ignored if the model does not contain background species.
Default is |
highlight |
Name or vector of names of the species to be highlighted with a thicker line. |
y_ticks |
The approximate number of ticks desired on the y axis. |
... |
Further arguments used by only some of the methods: For the
For the
For
For the
|
A ggplot2 object.
Other plotting functions:
addPlot(),
animate(),
plot,
plotBiomass(),
plotCDF(),
plotCDF2(),
plotDiet(),
plotFMort(),
plotFeedingLevel(),
plotGrowthCurves(),
plotMizerParams,
plotMizerSim,
plotPredMort(),
plotRelative(),
plotSpectra(),
plotSpectra2(),
plotSpectraRelative(),
plotYield(),
plotYieldGear(),
plotYieldVsF(),
plotting_functions
plot2(getEncounter(NS_params), getEncounter(NS_params))
plot2(getResourceMort(NS_params), getResourceMort(NS_params))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.