View source: R/side_functions.R
mapThis | R Documentation |
Internal function to realize maps
mapThis(geodata, belongmatrix, undecided = NULL, geom_type = "polygon")
geodata |
feature collections ordered like the original data used for the clustering |
belongmatrix |
The membership matrix obtained at the end of the algorithm |
undecided |
A float between 0 and 1 giving the minimum value that an observation must get in the membership matrix to not be considered as uncertain (default = NULL) |
geom_type |
A string indicating the type of geometry (polygon, string or point) |
A named list with :
ProbaMaps : a list of ggplot maps showing for each group the probability of the observations to belong to that group
ClusterMap : a ggplot map showing the most likely group for each observation
#No example provided, this is an internal function, use the general wrapper function mapClusters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.