create_plot_data {plotDK} | R Documentation |
Create Plot Data
Description
If data is provided, this functions attempts to merge the provided data with the geom-data inherent in the package on the chosen plotlevel. If no data is provided, only the geom-data for the chosen plotlevel is returned. This data is used to create the DK-plot.
Usage
create_plot_data(data, id, plotlevel, show_missing = FALSE, ...)
Arguments
data |
A |
id |
A For municipalities these variables can be either;
For regions these variables can either;
For provinces these variables can be either;
For zip-codes these variables can be;
|
plotlevel |
|
show_missing |
|
... |
Further arguments to pass to merge_data |
Value
A data.frame
with either raw geom-data or geom-data merged with any data provided.