A R package with different geographic levels of brazilian maps
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
data
inst/maps
man
.Rbuildignore
.gitignore
DESCRIPTION
NAMESPACE
NEWS.md
README-midwest-cities-1.png
README.Rmd
README.md
brazilmaps.Rproj
cran-comments.md

README.md

CRAN_Status_Badge CRAC_Downloads

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:

install.packages("brazilmaps")

or the development version from github

# 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:

library(brazilmaps)

# Get de map
midwest_cities <- get_brmap(geo = "City",
                            geo.filter = list(Region = 5))
#> Warning: package 'bindrcpp' was built under R version 3.3.3

# Plot
plot_brmap(midwest_cities)
#> Regions defined for each Polygons

I'm preparing a vignette with more examples that will come soon.