plot_similarity {anticlust} | R Documentation |
Plot similarity objective by cluster
Description
Plot similarity objective by cluster
Usage
plot_similarity(x, groups)
Arguments
x |
The data input. Can be one of two structures: (1) A data matrix
where rows correspond to elements and columns correspond to
features (a single numeric feature can be passed as a vector). (2)
An N x N matrix dissimilarity matrix; can be an object of class
|
groups |
A grouping vector of length N, usually the output
of |
Details
Plots the sum of pairwise distances by group.
Value
The diversity (sum of distances) by group.
Author(s)
Martin Papenberg martin.papenberg@hhu.de
See Also
Examples
# Match elements and plot similarity by match
N <- 100
lds <- data.frame(f1 = rnorm(N), f2 = rnorm(N))
pairs <- matching(lds, p = 2)
plot_similarity(lds, pairs)
[Package anticlust version 0.8.5 Index]