plot.clusterTreePlotInfo: plot a clusterTreePlotInfo object

Description Usage Arguments Value Examples

Description

plot a clusterTreePlotInfo object

Usage

1
2
3
4
5
## S3 method for class 'clusterTreePlotInfo'
plot(x, y = NULL, labels = NULL,
  axes = TRUE, frame.plot = FALSE, ann = TRUE,
  main = "Cluster Tree Density Plot", sub = NULL, xlab = NULL,
  ylab = "Height", col = NULL, labels.cex = 1, labels.col = NULL, ...)

Arguments

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

Value

No return value

Examples

 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)

rwoldford/trec documentation built on May 15, 2019, 6:29 p.m.