Description Usage Format Source Examples
This dataset provides daily average temperature normals from NOAA'S 1981-2010 climate normals dataset.
1 |
An object of class tbl_df
(inherits from tbl
, data.frame
) with 2745366 rows and 6 columns.
ftp://ftp.ncdc.noaa.gov/pub/data/normals/1981-2010/
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.