Learn R Programming

ConSpline (version 1.2)

WhiteSpruce: Height and Diameter of 36 White Spruce trees.

Description

A standard scatterplot example from various statistics text books, representing height versus diameter of White Spruce trees.

Usage

data("WhiteSpruce")

Arguments

Format

A data frame with 36 observations on the following 2 variables.

Diameter

Diameter at "breast height" of tree

Height

Height of tree

Examples

Run this code
# NOT RUN {
data(WhiteSpruce)
plot(WhiteSpruce$Diameter,WhiteSpruce$Height)
ans=conspline(WhiteSpruce$Height,WhiteSpruce$Diameter,7)
lines(sort(WhiteSpruce$Diameter),ans$muhat[order(WhiteSpruce$Diameter)])
# }

Run the code above in your browser using DataLab