View source: R/plot_funds_map.R
plot_funds_map | R Documentation |
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.
plot_funds_map(data, var)
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. |
Return ggplot
object representing an interactive map.
Lorena Ricciotti
#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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.