-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
64 lines (46 loc) · 1.18 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
title: "cageo: Geospatial data of Central America"
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# cageo <img src="man/figures/logo.png" align="right" height="139" />
<!-- badges: start -->
<!-- badges: end -->
The goal of cageo is to provide geospatial data for Costa Rica
## Installation
You can install the development version of cageo from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("ManuelSpinola/cageo")
```
## Example
This is a basic example which shows you how to use the package:
```{r example, message=FALSE, warning=FALSE}
## basic example code
library(cageo)
library(tidyverse)
library(sf)
library(stars)
```
# Datos vectoriales
```{r cr_mapa}
ggplot(ca_outline) +
geom_sf(fill = "dodgerblue4", color = "gray") +
theme_minimal()
```
# Datos raster
```{r}
ggplot() +
geom_stars(data = ca_elevation) +
scale_fill_viridis_c(name = "Altitud (m)", na.value = "transparent") +
theme_minimal() +
coord_equal()
```