snowfall | R Documentation |
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.
snowfall
A data frame with 100 rows and 3 variables.
The year snowfall measurement began on July 1.
The year snowfall measurement ended on June 30.
Snowfall measured in inches.
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"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.