image_matrix: wrapper for 'image' plotting a data matrix in the orientation...

Description Usage Arguments

View source: R/clusterTools.R

Description

Wrapper around image to plot a matrix as it is displayed in R console, i.e. the field dat[1,1] is at the top left corner. It further allows to plot text into individual fields and have colored axis tick labels.

Usage

1
2
image_matrix(z, x, y, text, text.col, text.cex = 1, axis = 1:2, axis1.col,
  axis1.las = 2, axis2.col, axis2.las = 2, axis.cex = 1.5, ...)

Arguments

z

the numeric data matrix to be plotted

x

optional x coordinates, corresponding to columns of z

y

optional y coordinates, corresponding to rows of z

text

a matrix of characters corresponding to dat which will be plotted on the image

text.col

individual colors for text fields

text.cex

relative font size for text fields

axis

integer vector, sets whether x-axis (1,3) and/or y-axis (2,4) are drawn; the column and row names of dat will be used as tick labels

axis1.col

invididual colors for x-axis tick labels, length must equal the number of columns of dat

axis1.las

parameter las (tick label orientation) for x axis

axis2.col

invididual colors for y-axis tick labels, length must equal the number of rows of dat

axis2.las

parameter las (tick label orientation) for y axis

axis.cex

if axis[1|2].col is provided, this sets the tick label size

...

further arguments to image, e.g., col to select colors


raim/segmenTools documentation built on Nov. 9, 2018, 5:38 p.m.