mapThis: Mapping the clusters

View source: R/side_functions.R

mapThisR Documentation

Mapping the clusters

Description

Internal function to realize maps

Usage

mapThis(geodata, belongmatrix, undecided = NULL, geom_type = "polygon")

Arguments

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)

Value

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

Examples

#No example provided, this is an internal function, use the general wrapper function mapClusters

geocmeans documentation built on Sept. 12, 2023, 9:06 a.m.