vegan3d is an R package of 3D plotting routines split apart from vegan. It can be used for dynamic plots based on rgl package, and for static 3D plots based on scatterplot3d package.
The package contains the following functions:
-
orditkplot: a Tcl/Tk-based 2D editable plot. Function opens a graphic window where labels can be moved with mouse, but points are fixed. It is also possible to edit labels and zoom into graph, and the final plot can be saved in various graphic formats or saved as an R object that can be further manipulated or plotted with standard R graphics commands. -
ordirglwith its support functionsorglpoints,orgltext,orglsegments,orglellipse,orglspider,orglclusterandorglspantree. These require rgl package and provide dynamic ordination graphics. In general, theorglXXXXfunctions are similar as 2DordiXXXXfunctions in vegan. -
rgl based support functions
rgl.isomapto displayisomapresults, andrgl.renyiaccumto displayrenyiaccumresults. -
ordiplot3dfor static 3D ordination diagrams. This requires scatterplot3d package. -
ordilattice3dfor static 3D ordination diagrams. This requires lattice package. -
orditree3dandordirgltreefunctions to display a coloured dendrogram tree over a 2D plane. The first is a static function based on scatterplot3d and the latter a dynamic spinnable plot based on rgl. The method was initially designed for showing dendrograms over ordination plane.
Special plotting functions based on lattice and tcltk packages are still in vegan. ggplot2-based functions are in ggvegan and ggvegan2 packages.
# Install 'vegan3d' in R:
install.packages('vegan3d',
repos = c('https://vegandevs.r-universe.dev', 'https://cloud.r-project.org'))