plot,DeponsDyn,missing-method | R Documentation |
Plot population dynamics simulated with DEPONS
## S4 method for signature 'DeponsDyn,missing'
plot(x, y, dilute = 5, plot.energy = TRUE, plot.legend = TRUE, ...)
x |
DeponsDyn object |
y |
Not used |
dilute |
Integer. Plot only one in every 'dilute' values. Defaults to 5, which yields a plot of the first simulated value and one in every five of the following values. |
plot.energy |
If set to TRUE it plots the amount of energy stored in simulated and in the landscape in addition to the population count |
plot.legend |
If set to TRUE, a legend is plotted |
... |
Optional plotting parameters |
data("porpoisedyn")
# Plot for specific range of years
rg <- c(as.POSIXlt("2011-01-01"), as.POSIXlt("2018-12-31"))
plot(porpoisedyn, xlim=as.POSIXct(rg), plot.energy=TRUE)
## Not run:
# Read data from default DEPONS simulation directory:
sim.dir <- "/Applications/DEPONS 2.1/DEPONS"
new.sim.name <- get.latest.sim(dir=sim.dir)
new.sim.out <- read.DeponsDyn(fname=paste(sim.dir, new.sim.name, sep="/"))
plot(new.sim.out)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.