Skip to content

Commit

Permalink
Change base map
Browse files Browse the repository at this point in the history
  • Loading branch information
albuja committed Mar 31, 2022
2 parents d9e7805 + cbc6604 commit 33a59f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions R/choropleth_map_prov_pdf.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ choropleth_map_prov_pdf <- function(values,
font_add_google(legend_items_font, 'legend_items_font')
showtext_auto()

st_crs(shp_pro) <- 4326

box <- st_bbox(shp_pro)
box <- st_bbox(mapa_base)

if (!is.null(logo_filename)) {
logo <- rasterGrob(readPNG(logo_filename),
Expand All @@ -83,7 +81,7 @@ choropleth_map_prov_pdf <- function(values,
include.lowest = TRUE,
sep = '; '))

mapa <- shp_pro %>%
mapa <- mapa_base %>%
left_join(scores)

labels <- mapa %>%
Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
No GIS knowledge is required. You need just provide data and geographic data will be internally added.

Internal base maps shape files were downloaded from:
https://www.ecuadorencifras.gob.ec/documentos/web-inec/Cartografia/Clasificador_Geografico/2015/
https://www.ecuadorencifras.gob.ec//documentos/web-inec/Cartografia/Clasificador_Geografico/2012/SHP.zip

Installation
------------
Expand Down

0 comments on commit 33a59f1

Please sign in to comment.