The goal of crgeo is to provide geospatial data for Costa Rica
You can install the development version of crgeo from GitHub with:
# install.packages("devtools")
devtools::install_github("ManuelSpinola/crgeo")
This is a basic example how to use the data in the package:
library(crgeo)
library(tidyverse)
library(sf)
library(stars)
ggplot(cr_outline) +
geom_sf(fill = "dodgerblue4", color = "gray") +
theme_minimal()
ggplot() +
geom_stars(data = cr_elevation_c) +
scale_fill_viridis_c(name = "Altura (m)", na.value = "transparent") +
theme_minimal() +
coord_equal()