plot.pglm: Diagnostic plots for 'pgls' models.

Description Usage Arguments Details Author(s) See Also Examples

Description

The function generates four diagnostics plots for 'pgls' models.

Usage

1
2
## S3 method for class 'pgls'
plot(x, ...)

Arguments

x

An object of class 'pgls'.

...

Additional arguments to plot functions.

Details

The first two plots show the fit of the phylogenetic residuals from the model to a normal distribution: a density plot of the residuals and a normal Q-Q plot. The second two plots scatterplots show pattern in the distribution of the fitted values against the observed and residual values.

Author(s)

Rob Freckleton, David Orme

See Also

pgls

Examples

1
2
3
4
5
data(shorebird)
shorebird <- comparative.data(shorebird.tree, shorebird.data, Species, vcv=TRUE, vcv.dim=3)
mod1 <- pgls(log(Egg.Mass) ~ log(M.Mass) * log(F.Mass), shorebird)
par(mfrow=c(2,2))
plot(mod1)

Example output

Loading required package: ape
Loading required package: MASS
Loading required package: mvtnorm

caper documentation built on May 2, 2019, 4:49 p.m.