R/data-snowfall.R

#' Snowfall at Paradise, Mt. Rainier National Park
#'
#' Annual snowfall data for Paradise, Mt. Rainier National Park.
#' To include a full winter season, snowfall is recorded from July 1
#' to June 30. Data from 1943-1946 not available due to road closure
#' during World War II. Records also unavailable from 1948-1954.
#'
#' @format A data frame with 100 rows and 3 variables.
#' \describe{
#'   \item{year_start}{The year snowfall measurement began on July 1.}
#'   \item{year_end}{The year snowfall measurement ended on June 30.}
#'   \item{total_snow}{Snowfall measured in inches.}
#' }
#' @source [National Parks Services](https://www.nps.gov/mora/planyourvisit/annual-snowfall-totals.htm).
#' @examples
#'
#' library(ggplot2)
#'
#' ggplot(snowfall, aes(x = total_snow)) +
#'   geom_histogram(binwidth = 50) +
#'   labs(
#'     title = "Annual Snowfall",
#'     subtitle = "Paradise, Mt. Rainier National Park",
#'     x = "Snowfall (in.)",
#'     y = "Number of Years",
#'     caption = "Source: National Parks Services"
#'   )
#'
#' ggplot(snowfall, aes(x = year_start, y = total_snow, group = 1)) +
#'   geom_line() +
#'   labs(
#'     title = "Annual Snowfall",
#'     subtitle = "Paradise, Mt. Rainier National Park",
#'     y = "Snowfall (in.)",
#'     x = "Year",
#'     caption = "Source: National Parks Services"
#'   )
"snowfall"

Try the openintro package in your browser

Any scripts or data that you put into this service are public.

openintro documentation built on June 22, 2024, 7:37 p.m.