| SnowGR | R Documentation |
Official snowfall data by month and season for Grand Rapids, MI, going back to 1893.
data(SnowGR)
A data frame with 119 observations of the following variables.
SeasonStartYear in which season started (July is start of season)
SeasonEndYear in which season ended (June is end of season)
JulInches of snow in July
AugInches of snow in August
SepInches of snow in September
OctInches of snow in October
NovInches of snow in November
DecInches of snow in December
JanInches of snow in January
FebInches of snow in February
MarInches of snow in March
AprInches of snow in April
MayInches of snow in May
JunInches of snow in June
TotalInches of snow for entire season (July-June)
These data were compiled by Laura Kapitula from data available from NOAA. The original URL used (http://www.crh.noaa.gov/grr/climate/data/grr/snowfall/) is no longer in service.
data(SnowGR)
if (require(ggformula)) {
df_stats(~ Total, data = SnowGR)
gf_histogram( ~ Total, data = SnowGR)
gf_point(Total ~ SeasonStart, data = SnowGR) |>
gf_smooth()
if (require(tidyr) && require(dplyr)) {
Snow2 <-
SnowGR |>
pivot_longer(Jul:Total, names_to = "month", values_to = "snowfall") |>
filter(month != "Total") |>
mutate(month = factor(month, levels = unique(month)))
gf_violin(snowfall ~ month, data = Snow2, scale = "width")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.