Learn R Programming

geocmeans (version 0.3.4)

mapThis: Mapping the clusters

Description

Internal function to realize maps

Usage

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

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

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)

Examples

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

Run the code above in your browser using DataLab