tabnet_map2: Generate Map plot from indicator data, with North indicator...

View source: R/tabnet_map2.R

tabnet_map2R Documentation

Generate Map plot from indicator data, with North indicator and scale

Description

Other version of [tabnet_map()], with North indicators and scale bar. Requires ggspatial package.

Usage

tabnet_map2(
  indicator_index,
  region = "MunicĂ­pio",
  subindicator = NULL,
  years = NULL,
  label = FALSE,
  nBins = NULL,
  palette = "Purples",
  title = NULL,
  scalebar = TRUE,
  north_arrow = TRUE,
  scale_width = 0.3
)

Arguments

indicator_index

Indicator index number, @seealso [tabnet_index()].

region

String describing how should data be regionalized.

subindicator

Among the indicator, which subindicator should be used? Defaults to the last index.

years

Retrieve data from one or more specific years?

label

Boolean. Should the regions be labeled? Defaults to false.

nBins

Number of bins to discretize desired indicator value.

palette

RColorBrewer palette.

title

Do you want to provide a specific title? Otherwise, function will generate one itself.

scalebar

Boolean, indicating whether a scale bar should be present on the map. Defaults to true.

north_arrow

Boolean, indicating whether a North arrow should be added on the map. Defaults to true.

scale_width

ggspatial parameter, indicating scale bar width.

Value

ggplot2 object


joaohmorais/rtabnetsp documentation built on July 16, 2024, 12:39 p.m.