Description Usage Arguments Examples
View source: R/imageWithLabels.R
image plot with labels
1 2 3 4 | imageWithLabelsNoLayout(x, col.labels = colnames(x),
row.labels = rownames(x), cex = 1, cex.axis = 0.5, main = NULL,
col = heat.colors(12), digits = 2, xlab = "", ylab = "",
zlim = NULL, na.color = "gray", textB = NULL, ...)
|
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 |
xlab |
x label |
ylab |
y label |
zlim |
z value range, default NULL an determined from x |
na.color |
na.color |
textB |
indicate if correlation (text) should be added to heatmap. If - with how many digits. default = NULL (do not add). |
... |
passed to image |
1 2 3 4 5 6 7 8 9 10 11 12 13 | x = matrix(rnorm(20*30),ncol=20)
rownames(x) <- 1:30
colnames(x) <- letters[1:20]
quantable:::image_nan(x,textB=1)
imageWithLabelsNoLayout(x,col = heat.colors(13),textB=2, text.cex=0.6)
imageWithLabelsNoLayout(x,col = heat.colors(12),breaks=seq(min(x),max(x),length=13))
x[3,3] <- NA
imageWithLabelsNoLayout(x,col = heat.colors(12),
breaks=seq(min(x,na.rm=TRUE),
max(x,na.rm=TRUE),length=13))
imageWithLabelsNoLayout(x,xlab="ttt",ylab="bbb")
imageWithLabelsNoLayout(x,xlab="ttt",ylab="bbb", zlim=c(0,2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.