-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
61 lines (43 loc) · 1.13 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
---
title: "crgeo: Geospatial data of Costa Rica"
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%"
)
```
# crgeo <img src="man/figures/logo.png" align="right" height="139" />
<!-- badges: start -->
<!-- badges: end -->
The goal of crgeo is to provide geospatial data for Costa Rica
## Installation
You can install the development version of crgeo from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("ManuelSpinola/crgeo")
```
## Example
This is a basic example how to use the data in the package:
```{r example, message=FALSE, warning=FALSE}
library(crgeo)
library(tidyverse)
library(sf)
library(stars)
```
```{r cr_outline}
ggplot(cr_outline) +
geom_sf(fill = "dodgerblue4", color = "gray") +
theme_minimal()
```
```{r cr_mapa}
ggplot() +
geom_stars(data = cr_elevation_c) +
scale_fill_viridis_c(name = "Altura (m)", na.value = "transparent") +
theme_minimal() +
coord_equal()
```