Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rgl.isomap

Dynamic 3D plot of isomap ordination.


Description

Function displays a dynamic 3D plot from isomap ordination.

Usage

rgl.isomap(x, web = "white", ...)

Arguments

x

Result from isomap.

web

Colour of the web. If this is a vector matching the number of points, the colour of links is a mixture of joined points. NA skips drawing the web.

...

Other parameters passed to ordirgl and scores.

Details

Function rgl.isomap displays dynamic 3D plots that can be rotated on the screen. The functions is based on ordirgl, but it adds the connecting lines. The function passes extra arguments to scores or ordirgl functions so that you can select axes, or define colours and sizes of points.

Value

Function returns nothing.

Note

This is a support function for isomap ordination in the vegan package.

Author(s)

Jari Oksanen.

See Also

Examples

if (interactive() && require(rgl, quietly = TRUE)) {
data(BCI)
dis <- vegdist(BCI)
## colour points and links by the dominant species
dom <- factor(make.cepnames(names(BCI))[apply(BCI, 1, which.max)])
ord <- isomap(dis, k=3)
rgl.isomap(ord, col = as.numeric(dom), web = as.numeric(dom), lwd=2)
}

vegan3d

Static and Dynamic 3D Plots for the 'vegan' Package

v1.1-2
GPL-2
Authors
Jari Oksanen [aut, cre], Roeland Kindt [aut], Gavin L. Simpson [aut]
Initial release
2018-10-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.