- data
Data frame. The dataset containing the variable to be plotted.
- var
Character. The name of the variable (column) in data to be visualized.
- map_section
Character vector of AGS codes or federal state shortcuts. Used to define the outer boundaries of the map. Shortcuts are available for Germany ("DE") and for each federal state (e.g., "BE" for Berlin). For other areas, providing an AGS code is necessary, which can be looked up using the list_codes function.
- level
Character "land", "kreis", or "gemeinde". Used to define the inner boundaries, i.e. the areas which will be plotted within map_section. For example, to plot districts in the state of Brandenburg specify map_section = "BB" and level = "kreis".
- add_labels
Logical. Whether to show numeric labels on the map. If TRUE, will not only fill each area specified in level with a color but also print the number provided in var on the map.
- year
Integer. Year of the data to be plotted. Will detect the respective column in data if it is named "Year" or "Jahr" and filter the year specified. Will by default also determine the year from which the geospatial data (shapefiles) will be used (see geo_year). Useful if data contains information from multiple years.
- geo_year
Integer or "". Year of the geodata to use; defaults to "" for which the year provided in year is used. Specify manually to plot data from a given year using geospatial data from a different year. Can be useful in case of matching issues.
- palette
Character. Name of the color palette ("Red", "Blue", etc.).