View source: R/methods_DESin.R
plot.DESin | R Documentation |
Plotting method for class DESin. Plots the number of species through time, after randomization.
## S3 method for class 'DESin'
plot(x, ribbon = TRUE, ...)
x |
an object of the class DESin. |
ribbon |
logical. If TRUE, the minimum and maximum species numbers per timebin over all replicates are shown as a ribbon around the mean. |
... |
other arguments passed to |
a plot showing the mean species number per timebin over all replicates.
DESin
, summary.DESin
,write.DESin
fos <- data.frame(species = rep(letters[1:4],25),
earliestAge = runif(100, min = 60, max = 100),
latestAge = runif(100, min = 0, max = 60),
area = sort(rep(c("A", "B"), 50)))
rec <- data.frame(species = c(letters[1:4], letters[1:2]),
area = c(rep("A",4), rep("B", 2)))
exp1 <- DESin(fos, rec, bin.size = 2, reps = 3)
plot(exp1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.