Learn R Programming

ggvegan (version 0.1-0)

autoplot.anosim: ggplot-based plot for objects of class "anosim"

Description

Produces a multi-layer ggplot object representing the output of objects produced by anosim.

Usage

# S3 method for anosim
autoplot(object, notch = TRUE, varwidth = TRUE,
  xlab = NULL, ylab = NULL, title = "Analysis of similarities",
  subtitle = NULL, caption = bquote(R == .(R) * "," ~ P == .(P)), ...)

Arguments

object

an object of class "anosim", the result of a call to anosim.

notch

logical; make notched (default) or standard box plot?

varwidth

logical; make box width proportional to the square-root of the number of observations in the group (default)?

xlab

character; label for the x-axis.

ylab

character; label for the y-axis.

title

character; title for the plot.

subtitle

character; subtitle for the plot.

caption

character; caption for the plot.

...

additional arguments passed to other methods.

Value

A ggplot object.

Examples

Run this code
# NOT RUN {
data(dune)
data(dune.env)
dune.dist <- vegdist(dune)
dune.ano <- with(dune.env, anosim(dune.dist, Management))

autoplot(dune.ano, notch = FALSE)
# }

Run the code above in your browser using DataLab