Skip to contents

This function creates a plot using ggplot2 where each planning unit is represented as a polygon filled with light green color. The unit names are added as text labels that repel each other to minimize overlap.

Usage

plot_planning_unit(planning_unit, map_label = NULL)

Arguments

planning_unit

A sf object representing the planning units.

map_label

A string representing the column name to use for labels. If empty, the second column of planning_unit is used.

Value

A ggplot object.