MSG (version 0.3)

PlantCounts: Number of plants corresponding to altitude

Description

For each altitude, the number of plants is recorded.

Arguments

Format

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

altitude

altitude of the area

counts

number of plants

Examples

Run this code
# NOT RUN {
## different span for LOWESS
data(PlantCounts)
par(las = 1, mar = c(4, 4, 0.1, 0.1), mgp = c(2.2, 0.9, 0))
with(PlantCounts, {
    plot(altitude, counts, pch = 20, col = rgb(0, 0, 0, 0.5), panel.first = grid())
    for (i in seq(0.01, 1, length = 70)) {
        lines(lowess(altitude, counts, f = i), col = rgb(0, i, 0), lwd = 1.5)
    }
})
# }

Run the code above in your browser using DataCamp Workspace