rgl.renyiaccum: Dynamic Perspective Plot of Renyi Diversity Accumulation

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Function rgl.renyiaccum displays a dynamic 3D plot of the result of renyiaccum function in the vegan package. Function persp.renyiaccum (in vegan) produces similar static plots.

Usage

1
rgl.renyiaccum(x, rgl.height = 0.2, ...)

Arguments

x

A renyiaccum result.

rgl.height

Vertical scaling of the plot.

...

Other arguments passed to the function (ignored).

Details

This is a graphical support function to renyiaccum in vegan. Similar static plots can be produced by persp.renyiaccum.

Value

Function returns nothing.

Author(s)

Roeland Kindt.

See Also

renyiaccum, persp.renyiaccum, rgl.

Examples

1
2
3
4
5
6
if (interactive() && require(rgl, quietly = TRUE)){
data(BCI)
mod <- renyiaccum(BCI[1:12,])
persp(mod)
rgl.renyiaccum(mod)
}

Example output

Loading required package: vegan
Loading required package: permute
Loading required package: lattice
This is vegan 2.4-4
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

vegan3d documentation built on May 2, 2019, 2:44 a.m.