Learn R Programming

PASWR2 (version 1.0.5)

BIOMASS: Beech Trees

Description

Several measurements of 42 beech trees (Fagus Sylvatica) taken from a forest in Navarre (Spain)

Usage

BIOMASS

Arguments

Format

A data frame with 42 observations on the following 4 variables:

  • diameter (diameter of the stem in centimeters)

  • height (height of the tree in meters)

  • stemweight (weight of the stem in kilograms)

  • aboveweight (aboveground weight in kilograms)

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.

Examples

Run this code
# NOT RUN {
pairs(BIOMASS, col = "red", cex = 0.75)
plot(log(aboveweight) ~ log(diameter), data = BIOMASS)
# logarithmic axes
ggplot(data = BIOMASS, aes(x = diameter, y = aboveweight, color = log(stemweight))) + 
geom_point() + scale_x_log10() + scale_y_log10() + 
labs(x = "diameter of the stem in centimeters", y = "above ground weight in kilograms")
# }

Run the code above in your browser using DataLab