The goal of cacc is to provides geospatial data of Central America to do climate change analysis.
Installation
You can install the development version of cacc from GitHub with:
# install.packages("devtools")
devtools::install_github("ManuelSpinola/cacc")
Example
This is a basic example which shows you how to use the package:
max_temp <- ca_future_worldclim(var = "tmax",
res = 10,
gcm = "ACCESS-CM2",
ssp = "ssp126",
interval = "2041-2060",
path = tempdir(),
return_stack = TRUE)
ggplot() +
geom_stars(data = max_temp) +
scale_fill_viridis_c(name = "Temperatura (°C)", na.value = "transparent", option = "C", direction = -1) +
theme_minimal() +
coord_equal()