Learn R Programming

BSDA (version 1.2.0)

Smokyph: Water pH levels of 75 water samples taken in the Great Smoky Mountains

Description

Data for Exercises 6.40, 6.59, 7.10, and 7.35

Usage

Smokyph

Arguments

Format

A data frame/tibble with 75 observations on three variables

waterph

water sample pH level

code

charater variable with values low (elevation below 0.6 miles), and high (elevation above 0.6 miles)

elev

elevation in miles

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code
# NOT RUN {
summary(Smokyph$waterph)
tapply(Smokyph$waterph, Smokyph$code, mean)
stripchart(waterph ~ code, data = Smokyph, method = "stack",
           pch = 19, col = c("red", "blue"))
           t.test(Smokyph$waterph, mu = 7)
           SIGN.test(Smokyph$waterph, md = 7)
           t.test(waterph ~ code, data = Smokyph, alternative = "less")
           t.test(waterph ~ code, data = Smokyph, conf.level = 0.90)
 
# }
# NOT RUN {
 library(ggplot2)
 ggplot2::ggplot(data = Smokyph, aes(x = waterph, fill = code)) + 
            geom_dotplot() + 
            facet_grid(code ~ .) + 
            guides(fill = FALSE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab