plot.pgls | R Documentation |
The function generates four diagnostics plots for 'pgls' models.
## S3 method for class 'pgls'
plot(x, ...)
x |
An object of class 'pgls'. |
... |
Additional arguments to plot functions. |
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.
Rob Freckleton, David Orme
pgls
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.