tabnet_map: Generate Map plot from indicator data

View source: R/tabnet_map.R

tabnet_mapR Documentation

Generate Map plot from indicator data

Description

Generate a ggplot2 map from indicator data of a specific year.

Usage

tabnet_map(
  indicator_index,
  region = "MunicĂ­pio",
  subindicator = NULL,
  years = NULL,
  label = FALSE,
  nBins = NULL,
  palette = "Purples",
  title = NULL
)

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.

Value

ggplot2 object


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