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

View source: R/clusterTools.R

image_matrixR Documentation

wrapper for image plotting a data matrix in the orientation of text display

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

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

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

axis.cex

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

cut

if TRUE data is cut at min and max of breaks.

breaks

breakst to use for color selection.

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

...

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


raim/segmenTools documentation built on March 29, 2025, 9:36 p.m.