imageWithLabels: image plot with labels

Description Usage Arguments Examples

View source: R/imageWithLabels.R

Description

image plot with labels

Usage

1
2
3
4
5
imageWithLabels(x, col.labels = colnames(x), row.labels = rownames(x),
  cex = 1, cex.axis = 0.5, main = NULL, col = heat.colors(12),
  digits = 2, marLeft = graphics::par()$mar,
  marRight = graphics::par()$mar, xlab = "", ylab = "", zlim = NULL,
  na.color = "gray", widths = c(4, 1), ...)

Arguments

x

matrix

col.labels

rownames(x)

row.labels

colnames(x)

cex

size of labels

cex.axis

size of axis lables

main

main title

col

color map for matrix

digits

number of digits on colorscale, default 2

marLeft

margins of left image see ?par for more detail

marRight

margins of right image see ?par for more detail

xlab

x label

ylab

y label

zlim

z value range, default NULL an determined from x

na.color

na.color

widths

controls the size of left and right pane

...

passed to image

Examples

1
2
3
4
5
6
7
x = matrix(rnorm(20*30),ncol=20)
rownames(x) <- 1:30
colnames(x) <- letters[1:20]
martmp <- par()$mar
imageWithLabels(x)
imageWithLabels(x,marLeft = c(5,5,2,2),marRight=c(0,0,0,0),xlab="ttt",ylab="bbb")
par(mar = martmp)

quantable documentation built on May 16, 2018, 1:04 a.m.