Skip to contents

Plot interactive visualizations of GeoSOM, as an html page. The plot can represent general map informations, or selected categorical or numeric variables (not necessarily the ones used during training). Hover over the map to focus on the selected cell or variable, and display further information.This function is a wrapper of aweSOM::aweSOMplot().

Usage

geosom_plot(gsom, type, superclass, ...)

Arguments

gsom

A kohonen object,get from geosom().

type

Character, the plot type. The default "Hitmap" is a population map. "Cloud" plots the observations as a scatterplot within each cell (see Details). "UMatrix" plots the average distance of each cell to its neighbors, on a color scale. "Circular" (barplot), "Barplot", "Boxplot", "Radar" and "Line" are for numeric variables. "Color" (heat map) is for a single numeric variable. "Pie" (pie chart) and "CatBarplot" are for a single categorical (factor) variable.

superclass

A numeric vector get form geosom_superclass().

...

Other arguments passed to aweSOM::aweSOMplot().

Value

An object of class htmlwidget.

Author

Wenbo Lv lyu.geosocial@gmail.com

Examples

if (FALSE) {
data(pmc)
set.seed(2004)
g = geosom(data = pmc, coords = c("centroidx","centroidy"),
wt = 3,grid = geosomgrid(6,10),normalize = TRUE)
g_superclass = geosom_superclass(g,12)
geosom_plot(g,type = "Circular",superclass = g_superclass)
}