myplclust: plclust in colour

Description Usage Arguments Author(s) Examples

View source: R/myplclust.R

Description

Modifiction of plclust for plotting hclust objects in *in colour*!

Usage

1
2
myplclust(hclust, labels = hclust$labels, lab.col = rep(1,
  length(hclust$labels)), hang = 0.1, xlab = "", sub = "", ...)

Arguments

hclust

hclust object

labels

a character vector of labels of the leaves of the tree

lab.col

colour for the labels; NA=default device foreground colour

hang

as in hclust & plclust

xlab

title for x-axis (defaults to no title)

sub

subtitle (defualts to no subtitle)

...

further arguments passed to plot

Author(s)

Eva KF Chan

Examples

1
2
3
data(iris)
hc <- hclust( dist(iris[,1:4]) )
myplclust(hc, labels=iris$Species,lab.col=as.numeric(iris$Species))

rafalab/rafalib documentation built on April 17, 2021, 6:47 p.m.