plot.dispfit | R Documentation |
Plots the distributions previously fitted by dispersal.kernel
against the data density plot.
## S3 method for class 'dispfit'
plot(
data,
fit.criteria = NULL,
criteria.dif = 2,
envelopes = TRUE,
plot.data = TRUE
)
data |
Output object from the |
fit.criteria |
Either a numeric value referring to the number of distributions to plot (ordered according to the order.by argument from dispersal.kernel); a character string choosing to plot “all” distributions, to plot the distributions with an “AIC”, “AICc”, or “BIC” difference to the top distribution bellow the number set by criteria.dif, or to plot specific distributions. By default, only the top distribution is plotted. |
criteria.dif |
A numeric value used when “AIC”, “AICc”, or "BIC" are also selected in fit.criteria. Its value refers to the estimator difference to the top distribution. Only distributions with their estimator difference to the top model falling below this value will be plotted. The default is 2. |
envelopes |
A boolean (TRUE/FALSE) value choosing whether to plot the confidence envelopes associated with each distribution. Default is TRUE. |
plot.data |
A boolean (TRUE/FALSE) value selecting to plot the density of the data. |
dispersal.kernel
## simulate data from lognormal distribution
set.seed(1111)
simulated.data <- rlnorm(200, meanlog = 5, sdlog = 1)
## run dispersal.kernel function
fit <- dispersal.kernel(simulated.data)
## plot data from fit
plot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.