knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The goal of brazilmaps is to provide Brazilian map spatial objects of varying region types (e.g. cities, states, microregions, mesoregions).
Install the release version from CRAN:
install.packages("brazilmaps")
or the development version from github
# install.packages("devtools") devtools::install_github("rpradosiqueira/brazilmaps")
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)) # Plot plot_brmap(midwest_cities)
I'm preparing a vignette with more examples that will come soon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.