plotStem2d: 2D visualization of tree stems

Description Usage Arguments Value Author(s) Examples

View source: R/plotStem2d.R

Description

plotStem3d is used to visualize tree stems in 3D

Usage

1
plotStem2d(hi,di,col)

Arguments

hi,

vector of measured tree i heights

di,

vector of measured tree diameters (di) at i heights

col,

stem color, e.g. "chocolate"

Value

Nothing, but outputs a plot

Author(s)

Carlos A. Silva

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Importing forest inventory data
data(ForestInv01) 

# Subsetting Tree 1
tree1<-subset(ForestInv01,ForestInv01[,1]==1)
hi<-tree1$hi
di<-tree1$di

# Plotting stem 2d
plotStem2d(hi,di, col="forestgreen")

Example output

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 

rForest documentation built on Oct. 4, 2021, 9:06 a.m.