Description Usage Arguments Value Examples
plot a clusterTreePlotInfo object
1 2 3 4 5 |
x |
a clusterTree object |
y |
NULL. Will be ignored with a warning if non-NULL |
labels |
labels for each data point |
axes |
whether to plot axis on the left |
frame.plot |
whether to plot frame for density plot |
ann |
whether to annotate main, sub, xlab, ylab |
main |
main title for the plot |
sub |
subtitle for the plot |
xlab |
label for x-axis |
ylab |
label for y-axis |
col |
color of rectangle |
labels.cex |
a character expansion multiplier for the size of the object labels in the plot |
labels.col |
colours of the object labels in the plot |
... |
remains to be processed |
No return value
1 2 3 4 5 6 7 8 9 10 | data <- rbind(matrix(rnorm(100, mean = 10, sd = 2), nrow = 50),
matrix(rnorm(100, mean = 0, sd = 1), nrow = 50),
matrix(rnorm(100, mean = -10, sd = 3), nrow = 50)
)
clustering1<-stats::hclust(dist(data),method='single')
clustering2<-kmeans(data,centers=3)
clustering3<-dbscan::dbscan(data,eps=.8)
res <- combineClusterings(clustering1,clustering2,clustering3)
res2 <- clusterTreeToClusterTreePlotInfo(res)
plot(res2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.