shipunov (version 1.5)

Ploth: Changes the appearance of cluster dendrogram

Description

Changes the appearance of cluster dendrogram

Usage

Ploth(hclust, labels=hclust[["labels"]], lab.col=1, col=1, pch.cex=1, pch="",
 bg=0, col.edges=FALSE, ...)

Arguments

hclust

Hclust object

labels

Labels

lab.col

Label colors

col

Colors

pch.cex

Scale of points

pch

Point types

bg

Points backgrounds

col.edges

Colorize edges?

...

Arguments to 'plot()'

Details

Changes the appearance of cluster dendrogram. Be sure to check plot margins!

Examples

Run this code
# NOT RUN {
iris.dist <- dist(iris[, 1:4], method="manhattan")
iris.hclust <- hclust(iris.dist)
Ploth(iris.hclust, col=as.numeric(iris[, 5]), pch=16, col.edges=TRUE, horiz=TRUE,
 leaflab="none")
legend("topleft", fill=1:nlevels(iris[, 5]), legend=levels(iris[, 5]))
# }

Run the code above in your browser using DataLab