plot_region_mask: plot_region_mask

Description Usage Arguments Value Examples

View source: R/plot_region_mask.R

Description

Plot the shape of the region to use as mask in 'plot_region_wordcloud()'.

Usage

1

Arguments

df

Dataframe for a given region obtained through ['gisco_get_nuts()'](https://rdrr.io/cran/giscoR/man/gisco_get_nuts.html), filtered by its NUTS id.

bbox

The bounding box of the region.

Value

A ggplot object with the shape of the nuts region.

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(giscoR)
library(magrittr)
df <- giscoR::gisco_get_nuts(nuts_id = "DE2", resolution = "10")
bbox_region <- df %>% st_bbox()
plot_region_mask(df, bbox_region)

## End(Not run)

GabZech/wordcloud.mappeR documentation built on Dec. 23, 2021, 11:11 p.m.