Learn R Programming

rForest (version 0.1.4)

plotStem3d: 3D visualization of tree stems

Description

plotStem3d is used to visualize tree stems in 3D

Usage

plotStem3d(hi,di,col,alpha)

Arguments

hi,

vector of trees his

di,

vector of trees dis

col,

stem color, e.g. "chocolate"

alpha,

stem transparency. Set a value from 0 to 1

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 3d
plotStem3d(hi,di,alpha=1,col="forestgreen")
# }

Run the code above in your browser using DataLab