Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotAsColor

Function that plots a matrix as a color image


Description

Function that plots a matrix as a color image, in matrix order.

Usage

plotAsColor(m,  order = NULL, order.col = order, order.row = order, 
rank = FALSE, border.color = "grey70", labels = FALSE,x=1:ncol(d),y=1:nrow(d), ...)

Arguments

m

Numeric matrix.

order

Default order used for rows and columns.

order.col

Column order.

order.row

Row order

rank

Logical, whether matrix m should be converted to ranks or not.

border.color

Color of border. Null for no border.

labels

If TRUE, add labels obtained from m.

x

X coordinates, passed to image.

y

Y coordinates, passed to image.

...

passed to image.

See Also

See Also as image.

Examples

require(DendSer) 			

d<- dist(scale(iris[,-5]))
plotAsColor(d,dser(d,hmethod="average"))

DendSer

Dendrogram seriation: ordering for visualisation

v1.0.1
GPL-2
Authors
Catherine B. Hurley and Denise Earle
Initial release
2013-09-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.