compareSimulations {virtualPollen} | R Documentation |
Compares different simulations produced by simulatePopulation
.
Description
Plots together the results of different virtual taxa produced by a single run of simulatePopulation
.
Usage
compareSimulations(
simulation.output = NULL,
species = "all",
filename = NULL,
columns = "Pollen",
time.zoom = NULL,
width = 12,
text.size = 20,
title.size = 25,
plot.title = ""
)
Arguments
simulation.output |
list, output of |
species |
a number or vector or numbers representing rows in the parameters dataframe, or a string or vector of strings referencing to the "label" column of the parameters dataframe. |
filename |
character string, name of output pdf file. If NULL or empty, no pdf is produced. |
columns |
character string or vector of character strings with these possible values: "Pollen", "Population.mature", "Population.immature", "Population.viable.seeds", "Suitability", "Biomass.total", "Biomass.mature", "Biomass.immature", "Mortality.mature", "Mortality.immature", "Driver.A", "Driver.B". |
time.zoom |
vector of two numbers, indicating the beginnign and end of the time interval to be plotted (i.e. "c(5000, 10000)") |
width |
plot width in inches. |
text.size |
text size of the plot. |
title.size |
plot title size. |
plot.title |
character string to use as plot title. |
Details
The user can decide what virtual taxa to plot through the species
argument, and what information to show throught the columns
argument. Output is plotted on screen by default, and printed to pdf if the filename
argument is filled.
Author(s)
Blas M. Benito <blasbenito@gmail.com>
See Also
simulatePopulation
, plotSimulation
Examples
#getting example data
data(simulation)
#compare taxa 1, 2, and 3.
compareSimulations(simulation.output = simulation,
species = c(1, 2, 3),
columns = c("Pollen", "Suitability"),
time.zoom = c(1000, 2000)
)