Bsp <- matrix(c(21,23,26,27, 18,24,25,28, 14,17,23,23, 16,19,21,25), ncol=4, byrow=TRUE)
colnames(Bsp) <- paste0("Measure", LETTERS[1:4])
rownames(Bsp) <- paste("prod", 8:11, sep="_")
Bsp
tableColVal(Bsp, pdf=FALSE)
tableColVal(Bsp, pdf=FALSE, nameswidth=0.1) # relative to plot width
tableColVal(Bsp, pdf=FALSE, col.titles=2, cex.text=2, col.main=3)
tableColVal(Bsp, pdf=FALSE, Range=c(10,40))
tableColVal(Bsp, pdf=FALSE, palette=heat.colors(12))
tableColVal(Bsp, pdf=FALSE, palette=c(2,4,7), main="last
comparison")
tableColVal(Bsp)
dev.off()
tableColVal(Bsp, width=12, cex.text=2) # further arguments to pdf possible.
Bsp2 <- matrix(sample(1:100, 30), ncol=6, byrow=TRUE)
graphics.off(); windows(height=4)
tableColVal(Bsp2, pdf=FALSE)
Run the code above in your browser using DataLab