distmap: Display similarity matrix

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/distmap.R

Description

Calculates and visualizes a similarity matrix for subjects or variables in an image plot

Usage

1
2
3
distmap(data, what = c("subjects", "variables"), variables.method = 
c("associationMeasures", "distcor"), varweights, linkage = "ward.D2", 
reorderdend, col, ...)

Arguments

data

data.frame with original data or similarity matrix

what

Shall similarity matrix of subjects or variables be visualized?; ignored if data is a similarity matrix

variables.method

method to calculate similarities if what = "variables": combination of association measures ("associationMeasures") or distance correlation ("distcor")

varweights

optional vector of variable weights, used for calculating Gower's distances between subjects; ignored if what = "associationMeasures"

linkage

agglomeration method used for hierarchical clustering; corresponds to parameter method of hclust

reorderdend

optional numeric values for reordering the dendrogram (maintaining the constraints on the dendrogram), see wts option of reorder.dendrogram

col

Color palette; defaults to blue-scale palette, where darker blue indicates higher similarity

...

graphical parameters passed to heatmap.2

Details

If data is a data.frame, the similarity matrix is calculated for subjects (if what = "subjects") or variables (if what = "variables"). Similarities for subjects are calculated by similarity.subjects. \ Similarities for variables are derived by similarity.variables. Alternatively, data can also be a previously calculated similarity matrix.

Value

Image plots and dendrograms

Author(s)

Manuela Hummel

See Also

similarity.variables, dist.variables, similarity.subjects, dist.subjects, mix.heatmap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(mixdata)

## subjects
distmap(mixdata, what="subjects")

# example with variable weights
w <- rep(1:2, each=5)
distmap(mixdata, what="subjects", varweights=w)

## variables
distmap(mixdata, what="variables", method="association")
distmap(mixdata, what="variables", method="distcor")

CluMix documentation built on Jan. 21, 2019, 5:05 p.m.