-
Notifications
You must be signed in to change notification settings - Fork 14
/
README.Rmd
55 lines (38 loc) · 1.27 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
---
output:
md_document:
variant: markdown_github
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
[![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version/brazilmaps)](https://CRAN.R-project.org/package=brazilmaps)
[![CRAC\_Downloads](https://cranlogs.r-pkg.org/badges/grand-total/brazilmaps)](https://CRAN.R-project.org/package=brazilmaps)
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# brazilmaps
The goal of brazilmaps is to provide Brazilian map spatial objects of varying region types (e.g. cities, states, microregions, mesoregions).
## Installation
Install the release version from CRAN:
```{r , eval = FALSE}
install.packages("brazilmaps")
```
or the development version from github
```{r , eval = FALSE}
# install.packages("devtools")
devtools::install_github("rpradosiqueira/brazilmaps")
```
## Example
Let's assume that we want to plot the brazilian municipalities of the Midwest Region. To do this simply execute:
```{r midwest-cities}
library(brazilmaps)
# Get de map
midwest_cities <- get_brmap(geo = "City",
geo.filter = list(Region = 5))
# Plot
plot_brmap(midwest_cities)
```
I'm preparing a vignette with more examples that will come soon.