Description Usage Arguments Value Author(s) Examples
A simple S3 plot
method for coenocline simulations.
1 2 3 4 5 |
x |
an object of class |
type |
character; the type of plot to produce. See |
pch |
the plotting character to use. See |
... |
additional arguments to |
lty |
the line type to use. See |
A plot is drawn on the current device.
Gavin L. Simpson
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Poisson counts along a single gradient, Gaussian response
## =========================================================
x <- seq(from = 4, to = 6, length = 100)
opt <- c(3.75, 4, 4.55, 5, 5.5) + 0.5
tol <- rep(0.25, 5)
h <- rep(20, 5)
## simulate
set.seed(1)
y <- coenocline(x, responseModel = "gaussian",
params = cbind(opt = opt, tol = tol, h = h),
countModel = "poisson")
head(y)
y <- coenocline(x, responseModel = "gaussian",
params = cbind(opt = opt, tol = tol, h = h),
countModel = "poisson",
expectation = TRUE)
plot(y, type = "l", lty = "solid")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.