PlantCounts {MSG} | R Documentation |
Number of plants corresponding to altitude
Description
For each altitude, the number of plants is recorded.
Format
A data frame with 600 observations on the following 2 variables.
- altitude
altitude of the area
- counts
number of plants
Source
https://cosx.org/2008/11/lowess-to-explore-bivariate-correlation-by-yihui
Examples
## 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)
}
})
[Package MSG version 0.8 Index]