plot.DESin: Plot Method for DESin

View source: R/methods_DESin.R

plot.DESinR Documentation

Plot Method for DESin

Description

Plotting method for class DESin. Plots the number of species through time, after randomization.

Usage

## S3 method for class 'DESin'
plot(x, ribbon = TRUE, ...)

Arguments

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 plot

Value

a plot showing the mean species number per timebin over all replicates.

See Also

DESin, summary.DESin,write.DESin

Examples

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)

azizka/speciesgeocodeR documentation built on Sept. 5, 2023, 3:45 a.m.