ncdc_normals: Daily average temperature normals across the U.S.

Description Usage Format Source Examples

Description

This dataset provides daily average temperature normals from NOAA'S 1981-2010 climate normals dataset.

Usage

1

Format

An object of class tbl_df (inherits from tbl, data.frame) with 2745366 rows and 6 columns.

Source

ftp://ftp.ncdc.noaa.gov/pub/data/normals/1981-2010/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
library(lubridate)

temps <- filter(ncdc_normals,
                station_id %in% c(
                  "USW00014819", # Chicago, IL 60638
                  "USC00516128", # Honolulu, HI 96813
                  "USW00027502", # Barrow, AK 99723, coldest point in the US
                  "USC00042319" # Death Valley, CA 92328 hottest point in the US
                ))

ggplot(temps, aes(x = date, y = temperature, color = station_id)) +
  geom_line() +
  scale_x_date(name="date", expand=c(0, 0)) + 
  theme_minimal()

ggplot(temps, aes(x = date, y = temperature, color = station_id)) +
  geom_line() +
  scale_x_date(name="date", expand=c(0, 0)) + 
  scale_y_continuous(limits = c(-30, 110)) +
  theme_minimal() +
  coord_polar(theta = "x")

clauswilke/dviz.supp documentation built on Aug. 25, 2020, 2:12 a.m.