Learn R Programming

DendSer (version 1.0.3)

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

Run this code

	 			

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


Run the code above in your browser using DataLab