```
Note that when possible, data representing dates and numbers are converted to
the right format.
### Spatial objects: sf
Another major change in **v1.0.0** is the ability of return information on
spatial **sf** format, using `return_sf = TRUE`. The coordinate reference system
(CRS) used is **EPSG 4326**, that correspond to the **World Geodetic System
(WGS)** and return coordinates in latitude/longitude (unprojected coordinates):
``` r
# You would need to install `sf` if not installed yet
# run install.packages("sf") for installation
library(ggplot2)
library(dplyr)
all_stations <- aemet_daily_clim(
start = "2021-01-08", end = "2021-01-08",
return_sf = TRUE
)
ggplot(all_stations) +
geom_sf(aes(colour = tmed), shape = 19, size = 2, alpha = 0.95) +
labs(
title = "Average temperature in Spain",
subtitle = "8 Jan 2021",
color = "Max temp.\n(celsius)",
caption = "Source: AEMET"
) +
scale_colour_gradientn(
colours = hcl.colors(10, "RdBu", rev = TRUE),
breaks = c(-10, -5, 0, 5, 10, 15, 20),
guide = "legend"
) +
theme_bw() +
theme(
panel.border = element_blank(),
plot.title = element_text(face = "bold"),
plot.subtitle = element_text(face = "italic")
)
```
## Further enhancements
Other enhancements included on the **v1.0.0**:
- All the functions are now vectorized.
- New function `get_metadata_aemet()`.
- New function `ggclimat_walter_lieth()`. This function is now the default for
`climatogram_*` functions
[](https://lifecycle.r-lib.org/articles/stages.html#experimental).
Old behavior can be reproduced with options `ggplot2 = FALSE`.
- Plot functions gains new parameters (`verbose` and `...`). Now it is
possible to pass colors to the plotting functions.
- New example datasets: `climaemet::climaemet_9434_climatogram`,
`climaemet::climaemet_9434_temp` and `climaemet::climaemet_9434_wind`.