Skip to contents

The goal of cageo is to provide geospatial data for Costa Rica

Installation

You can install the development version of cageo from GitHub with:

# install.packages("devtools")
devtools::install_github("ManuelSpinola/cageo")

Example

This is a basic example which shows you how to use the package:

## basic example code
library(cageo)
library(tidyverse)
library(sf)
library(stars)

Datos vectoriales

ggplot(ca_outline) +
  geom_sf(fill = "dodgerblue4", color = "gray") +
  theme_minimal()

Datos raster

ggplot() +
  geom_stars(data = ca_elevation) +
  scale_fill_viridis_c(name = "Altitud (m)", na.value = "transparent") +
  theme_minimal()