plot.mulTree: Plots 'mulTree' results

View source: R/plot.mulTree.R

plot.mulTreeR Documentation

Plots mulTree results

Description

Plots a boxplots of the terms of a mulTree analysis.

Usage

## S3 method for class 'mulTree'
plot(
  mulTree.summary,
  terms,
  cex.terms,
  cex.coeff,
  horizontal = FALSE,
  ylim,
  col,
  ...
)

Arguments

mulTree.summary

A mulTree matrix summarized by summary.mulTree.

terms

An optional vector of terms labels.

cex.terms

An optional value for the size of the terms labels.

cex.coeff

An optional value for the size of the coefficients labels.

horizontal

Whether to plot the results horizontally (default = FALSE).

ylim

Optional, the y limits of the plot.

col

Optional, the color of the plot.

...

Any additional arguments to be passed to plot.

Author(s)

Thomas Guillerme

See Also

mulTree, read.mulTree, summary.mulTree

Examples

## read in the data
data(lifespan.mcmc)

## summarising the results
summarized_data <- summary(lifespan.mcmc)

## plotting the results
plot(summarized_data)

## Same plot using more options
plot(summarized_data, horizontal = TRUE, ylab = "", ylim = c(-2,2),
     main = "Posterior distributions", cex.terms = 0.5, cex.coeff = 0.8,
     terms = c("Intercept", "BodyMass", "Volancy", "Phylogeny", "Residuals"),
     col = c("red"), cex.main = 0.8)
abline(v = 0, lty = 3)


TGuillerme/mulTree documentation built on Feb. 21, 2024, 9:18 a.m.