Learn R Programming

vegan (version 1.6-10)

linestack: Plots One-dimensional Labelled Diagrams without Overwriting Labels

Description

Function linestack plots vertical one-dimensional plots for numeric vectors. The plots are always labelled, but the the labels are moved vertically to avoid overwriting.

Usage

linestack(x, cex = 0.8, label = "right", hoff = 2, air = 1.1, at = 0,
    add = FALSE, axis = FALSE, ...)

Arguments

x
Numeric vector to be plotted.
cex
Size of the labels.
label
Put labels to the "right" or "left" of the axis.
hoff
Distance from the vertical axis to the label in units of the width of letter m.
air
Multiplier to string height to leave empty space between labels.
at
Position of plot in horizontal axis.
add
Add to an existing plot.
axis
Add axis to the plot.
...
Other graphical parameters to labels.

Value

  • The function draws a plot and returns nothing useful.

Examples

Run this code
## First DCA axis
data(dune)
ord <- decorana(dune)
linestack(scores(ord, choices=1, display="sp"))
linestack(scores(ord, choices=1, display="si"), label="left", add=TRUE)
title(main="DCA axis 1")

Run the code above in your browser using DataLab