Description Usage Arguments Value
This function will take a spatialpolygonsdataframe, the variable in the spatial dataframe to be mapped, then the column name and value of the subregion of the spatialpolygonsdataframe to be mapped, along with the variable label (optional), and create a map layer filling the polygon associated with the mapping variable on a color scale. This is intented currently for only numeric data.
1 2 | fill_map_subregion(spatial_dataframe, mapping_variable, subregion_column_name,
subregion_value, label_variable)
|
spatial_dataframe |
The spatialpolygondataframe to be mapped |
mapping_variable |
The column name of the data to be mapped |
subregion_column_name |
The column name of the subregion to be mapped |
subregion_value |
The value in the aforementioned column name that will be mapped |
label_variable |
The column name (typically the english name column) (OPTIONAL) |
Returns a tmap object, which can be viewed as a map layer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.