+ - 0:00:00
Notes for current slide
Notes for next slide

climaemet catastro-logo (on CRAN)

Key features:

  • Retrieves climatic information registered by the AEMET stations (wind speed, temperature, air pressure.

  • Can retrieve data on spatial format (sf*).

Data sources:

Output formats:

  • Formatted tibble for compatibility with tidyverse. Dates and numbers are formatted properly

  • Geo-tagged points (sf) using the option return_sf = TRUE.

(Free) API key required

Needs an API Key (Go get it). Can be recorded as environment variable on R using aemet_api_key(<apikey>, install = TRUE)

1

Quick demo

library(climaemet)
library(tidyverse)
temp2020 <- aemet_daily_period(
"8416",
start = 2020, end = 2020
)
ggplot(temp2020) +
geom_col(aes(fecha, tmed, fill = tmed)) +
scale_fill_gradientn(
colours = hcl.colors(20, "RdBu", rev = TRUE),
labels = scales::label_number(suffix = "º")
) +
guides(fill = guide_colorsteps()) +
theme_minimal() +
labs(
title = "Valencia, Spain",
subtitle = "AEMET Station Id: 8416",
fill = "Avg. daily temp."
) +
ylab("Celsius degrees") +
xlab("date")

2

Quick demo

library(climaemet)
library(tidyverse)
temp2020 <- aemet_daily_period(
"8416",
start = 2020, end = 2020
)
ggplot(temp2020) +
geom_col(aes(fecha, tmed, fill = tmed)) +
scale_fill_gradientn(
colours = hcl.colors(20, "RdBu", rev = TRUE),
labels = scales::label_number(suffix = "º")
) +
guides(fill = guide_colorsteps()) +
theme_minimal() +
labs(
title = "Valencia, Spain",
subtitle = "AEMET Station Id: 8416",
fill = "Avg. daily temp."
) +
ylab("Celsius degrees") +
xlab("date")

2
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow