#rmarkdown::render(output_dir="c:/Research/Projects/standview/vignettes")
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Introduction

The standview package is an R-package for rendering a high-resolution-graphic stand density management diagram (DMD). A stand density management diagram is a visual aid used by foresters to evaluate stands based on stem density (number of trees per unit area) and either a mean tree size such as quadratic mean diameter, or basal area per unit area. In standview, one of two different formats may be generated. The first format is a plot in Reineke-space (Reineke 1933) and is called with the dmd.view function: dmd(ineq=i,...). The second option generates a figure in Gingrich-space (Gingrich 1967) and it is called with the gdmd.view function: gdmd.view(ineq=i, ...).

The functions presented in standview use English units as a default setting of the use.metric argument: use.metric=FALSE. When use.metric=TRUE, then the DMD will be rendered in metric units. Users should note that the change to metric units may come with an attendant change in other inputs as well. If ineq=1 or ineq=6, the user must specify a limiting sdi with the argument: max.sdi=xxx. Thus care should be taken to assure that the limiting sdi and sdi lines are rendered in proper units.

By default, stem density is trees acre^-1^ and basal area is square feet acre^-1^. Also, by default, quadratic mean diameter is in inches, and is defined as the diameter of the tree of mean basal area in a stand. If the user is employing the summation method (Long and Daniel 1990) to calculate stand density index then it is important to recognize that the stand diameter implied by the summation method is the generalized mean diameter (Zeide 1983), not the quadratic mean diameter. As such, the Gingrich-style DMD should not be used with the summation method because iso-lines for generalized diameter cannot be rendered.

Access

The package is not currently available from CRAN, but the latest version can be installed from the R console by pulling it from github with the following two lines of code:

install.packages("devtools")
library(devtools)
devtools::install_github("mwritchie/standview")

After installing the package in R, it must be loaded at runtime with the library function:

library(standview)

The current version of standview is r packageVersion("standview").

Reineke Space Density Management Diagrams

The dmd.view function will produce a Reineke-space diagram with the natural log of stem density on the x-axis and natural log of diameter on the y-axis. Although there are 17 items in the argument list for this function, in most instances only a few will be needed as the default values will generally suffice. The most important argument is ineq; it specifies which species, or species group, is required. The ineq argument must be specified as an integer between 1 and 12 in the current version. The ineq value defines the inverse slope of the limiting sdi (most often reineke.term=1.605), the value for limiting sdi (max.sdi), as well as volume and dominant height estimation functions if appropriate.

Table 1. Definitions of species and reference for DMD rendering by index of equations (ineq) in standview.

| ineq | Species | Reference | |:-------:|:---------|:----------------------| | 1 | User Defined | None | | 2 | ponderosa pine | Long and Shaw (2005) | | 3 | ponderosa pine | Jang et al. (2021) | | 4 | ponderosa pine | Edminster (1988) | | 5 | ponderosa pine | Cochran and Barrett (1992) | | 6 | California mixed-conifer | Long and Shaw (2012) | | 7 | Douglas-fir | Long et al. (1988) | | 8 | White fir | Zhang et al. (2007) | | 9 | Lodgepole pine | McCarter and Long (1986) | | 10 | spruce-fir | Weiskittel and Woodall (2023)| | 11 | red spruce | Weiskittel and Woodall (2023)| | 12 | balsam fir | Weiskittel and Woodall (2023)| | 13 | redwood/Douglas-fir | Ritchie and Berrill (2022) | | 14 | Douglas-fir/redwood | Ritchie and Berrill (2022) |

Note that volume estimation in Reineke-space has traditionally been presented as a series of iso-volume lines which the user then employs to visually approximate the estimate. This imprecise analog approach is no longer necessary. In R, these volumes estimates can be maintained, with precision, in a data frame. Nonetheless, dmd.view will draw iso-volume lines if the user specifies invol=TRUE in the argument list (see section on dmd.volume below). The dmd.view function is set up to render well in a 6wx8h canvas. For this reason opening a pdf is recommended: pdf("mydmdfile.pdf", width=6, height=8).

Generic DMD in Reineke Space: ineq=1

When ineq=1, dmd.view will produce a user-specified density management diagram. As such the user will need to specify the upper limit for stand density index (max.sdi), a title (dmd.title), the intermediate sdi lines (sdi.lines), the management zone (mgt.zone), the inverse slope of the limiting sdi (reineke.term) if it is other than 1.605. When using ineq=1, the user needs to be mindful of the units. For example, when use.metric=TRUE, the max.sdi is trees ha ^-1^, whereas when use.metric=FALSE max.sdi must be specified in trees ac ^-1^.

Published DMD in Reineke Space: ineq=(2-12).

In general, the user should be able to render a DMD using a published source with a fairly sparse argument list, by relying on the default arguments. The example below uses ineq=9 to render a lodgepole pine DMD (McCarter and Long 1986).

dmd.view(ineq=9, insdr=TRUE)

In this particular example the insdr argument is set to true for SDI limits placed on right side of the figure.

Gingrich Space Density Management Diagrams

Diagrams in Gingrich space use the same range of values for ineq (Table 1) as the Reineke format. Traditionally these figures do not present volume or dominant height information so there is no volume argument (invol) or volume color argument (vcol). An example Gingrich DMD using ineq=4 (Edminster 1988):

opar <- par(mar = c(3.0,2.0,2.5,2.5))
gdmd.view(ineq=4)
par(opar)

The gdmd.view function is set up to render well in a 8wx6h canvas. For this reason opening a pdf is recommended: pdf("mydmdfile.pdf", width=8, height=6). Note that as with Reineke space, some ineq values will require a user-specified sdi.max value.

Data Overlay

Of course a DMD with no data is fairly useless. One could plot data by hand, but that would be clunky. One may wish to overlay data from sampled stands or from growth model projections over time. This may be accomplished using functionality provided by R. Some functions you may find useful in plotting data and annotating figures are: points(), lines(), segments(), text(). The standview package comes with a sample data frame from the Goosenest Adaptive Management Area on the Klamath National Forest (Ritchie 2005) called gama05. The example below shows sampled treated plots (controls excluded) overlay with a Gingrich-style DMD using the gama05 data.

opar <- par(mar = c(3.0,2.0,2.5,2.5))
gdmd.view(ineq=3)
points(x=gama05[!gama05$treatment=="Control",]$tpa,
       y=gama05[!gama05$treatment=="Control",]$ba,
       cex=1.25, pch=21, col="black")

par(opar)

Volume and Dominant Height

Typically, a Reineke-space DMD will have iso-volume and/or iso-height lines. Below is an example of a Douglas-fir DMD with iso-volume lines.

opar <- par(mar = c(2.0, 2.0, 2.0, 2.0))

dmd.view(ineq=7, insdr=FALSE, invol=TRUE)

par(opar)

However, in the R environment these are vestigial items. A better way of determining volume is to calculate the volume and dominant height for any particular data point. The standview package allows for this with the dmd.volume function: dmd.volume(ineq=i,...).

DF<-dmd.volume(ineq=3,
               qmd=gama05$qmd,
               tpa=gama05$tpa,
               use.metric=FALSE) # generate volume and dom. ht.

DF

Note that by default, dmd.volume produces estimates in English units. For metric units, the argument list must include use.metric=TRUE.

File Formats

Figures can be rendered in r a number of different formats. The pdf function works very well for producing publication quality images (pdf("myDMD.pdf", ...)). My general practice is to generate a pdf, and then convert to a .jpg file if needed for a particular outlet. Other graphics options are bmp (bmp(filename = "myDMD.bmp", ...)), jpeg (jpeg(filename = "myDMD.jpeg", ...)), png (png(filename = "myDMD.png",...)) and tiff ( tiff(filename = "myDMD.tiff",...")). It is important that any of these should be closed with a call to dev.off() after rendering the plot. Examples of usage with pdf are shown in the standview help files.

References

Cochran, P.H., and J.W. Barrett (1992) Stocking levels and underlying assumptions for uneven-aged ponderosa pine stands. Res. Note PNW-509. USDA For. Serv. Pac. Northwest For. and Range Exp. Stn. 10p.

Gingrich, S. (1967) Measuring and evaluating stocking and stand density in upland hardwood forests in the central states. For. Sci. 13(1):38-53.

Jang, W.S., M.W. Ritchie, and J. Zhang (2021) Improved equations for the density management diagram isolines of ponderosa pine stands. For. Sci. 67(1):93-102.

Long, J.N., and T.W. Daniel (1990) Assessment of growing stock in uneven-aged stands. West. J. Appl. For. 5:93-96

Long, J.N., J.B. McCarter, and S.B. Jack (1988) A modified density management diagram for coastal Douglas-fir. West. J. Appl. For. 3(3):88-89.

Long, J.N., and J.D. Shaw (2005) A density management diagram for even-aged ponderosa pine stands. West. J. Appl. For. 20(4):205-215.

Long, J.N., and J.D. Shaw (2012) A density management diagram for even-aged Sierra Nevada mixed-conifer stands. West. J. Appl. For. 27(4):187-195.

McCarter, J.D., and J.N. Long (1986) A lodgepole pine density management diagram. West. J. Appl. For 1:6-11.

Reineke, L.H. (1933) Perfecting a stand density index for even-aged forests. J. Ag. Res. 46:627-638.

Ritchie, M.W. (2005) Ecological research at the Goosenest Adaptive Management Area in northeastern California. Gen. Tech. Rep. PSW-GTR-192. USDA For. Serv. Pac. SW Res. Stn. 120 p.

Ritchie, M.W. and J.-P. Berrill (2022) Precommercial thinning in California Forests. In: Stewart, W. (editor) Reforestation practices for conifers in California. Davis CA: University of California, Agriculture and Natural Resources.

Weiskittel, A. & Woodall, C. (2023) Stand density index and relative density calculator for the United States. figshare. Software. https://doi.org/10.6084/m9.figshare.24412246.v1

Zeide, B. (1983). The mean diameter for stand density index. Can. J. For. Res. 13:1023-1024.

Zhang, J., W.W. Oliver, and M.W. Ritchie (2007) Effect of stand densities on stand dynamics in white fir (Abies concolor) forests in northeast California, USA. For. Ecol. and Manage. 244:50-59.



mwritchie/standview documentation built on March 29, 2024, 2:32 a.m.