plot_funds_map {PublicWorksFinanceIT}R Documentation

Visual representation by mapping municipalities' polygons and color-coding them according to financial expenditures.

Description

The plot_funds_map function is designed for visualizing areal data within a region. It generates an informative map where each municipality is represented with a unique color determined by its corresponding financing amount.

Usage

plot_funds_map(data, var)

Arguments

data

dataset of class 'data.frame'. Specify the dataset from which to take information. The dataset must contain the geometry of the polygons of each municipality.

var

character. Specify the name of the variable to visualize.

Value

Return ggplot object representing an interactive map.

Author(s)

Lorena Ricciotti

Examples

#Retrieve data with the polygons of the municipalities
RENDISarea <- get_data_RENDIS("12", geo_ref = "A")
plot_funds_map(RENDISarea, var = "Finance")

#Plotting the map for Lazio region to visualize the total public
#expenditure divided by municipality.


[Package PublicWorksFinanceIT version 0.2.0 Index]