simulatePopulation.This function takes as input the output of simulatePopulation, and plots the pollen abundance, number of individuals, biomass, driver, and environmnetal suitability of each simulation outcome.
plotSimulation(
simulation.output = NULL,
species = "all",
burnin = FALSE,
filename = NULL,
time.zoom = NULL,
panels = c("Driver A",
"Driver B",
"Suitability",
"Population",
"Mortality",
"Biomass",
"Pollen"
),
plot.title = NULL,
width = 12,
text.size = 20,
title.size = 25,
line.size = 1
)output of simulatePopulation.
a number or vector of numbers representing rows in the parameters dataframe, or a string or vector of strings referencing to the "label" column of the parameters dataframe.
if FALSE, burn-in period is not considered in the model.
character string, name of output pdf file. If NULL or empty, no pdf is produced. It shouldn't include the extension of the output file.
vector of two numbers indicating the beginnign and end of the time interval to be plotted (i.e. "c(5000, 10000)")
character string or vector of character strings with these possible values: "Driver A", "Driver B","Suitability", "Population", "Mortality", "Biomass", "Pollen".
character string to use as plot title.
plot width in inches.
text size of the plot.
plot title size.
size of lines in plots.
The user can decide what virtual taxa to plot (argument species), and what information to show throught the panels argument. Output is plotted on screen by default, and printed to pdf if the filename argument is filled.
# NOT RUN {
#getting example data
data(simulation)
#plot first simulation
plotSimulation(simulation.output = simulation[[1]])
# }
Run the code above in your browser using DataLab