ptaeda {datana}R Documentation

Height growth of Pinus taeda (Loblolly pine) trees

Description

The Loblolly data frame has 84 rows and tree columns of records of the tree height growth of Loblolly pine trees. This dataframe is a slight modification to the original dataframe "Loblolly" from the datasets R package.

Usage

data(ptaeda)

Format

Data having the following columns:

tree

an ordered factor indicating the seed source for the tree. The ordering is according to increasing maximum height.

age

a numeric vector of tree ages, in yr.

height

a numeric vector of tree heights, in m.

Source

Pinheiro, J. C. and Bates, D. M. (2000) Mixed-effects Models in S and S-PLUS. Springer.

Examples


data(ptaeda)
plot(height ~ age, data = ptaeda, subset = tree == 329,
     xlab = "Tree age (yr)", las = 1,
     ylab = "Tree height (m)",
     main = "Loblolly data and fitted curve (tree 329 only)")
m1 <- nls(height ~ SSasymp(age, Asym, R0, lrc),
           data = ptaeda, subset = tree == 329)
age <- seq(0, 30, length.out = 101)
lines(age, predict(m1, list(age = age)))

[Package datana version 1.0.3 Index]