Learn R Programming

rForest (version 0.1.4)

plotStem2d: 2D visualization of tree stems

Description

plotStem3d is used to visualize tree stems in 3D

Usage

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

Examples

Run this code
# NOT RUN {
# 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")
# }

Run the code above in your browser using DataLab