tabnet_map2 | R Documentation |
Other version of [tabnet_map()], with North indicators and scale bar. Requires ggspatial package.
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
)
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. |
ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.