Displaying 2 results from an estimated 2 matches for "matrixplot".
Did you mean:
matrixtoplot
2013 Apr 03
1
Matrixplot (VIM package): can I add a colour scale?
Dear R Help,
I would like to know how to add a colour scale to a matrixplot please.
Here is the code that I've used to construct the matrix plot:
library(VIM)
SpatialPlot <- function(YearxBlock,plot.title){
# Years are columns, Blocks are rows in this matrix
YearxBlock <- as.matrix(YearxBlock)
# To set margins for the plot:
par(yaxt="n", oma=c(4,4,4,4...
2008 Jun 17
2
color2D.matplot axis names
Hi,
I finally came up with a nice colored matrixplot, using the color2D.matplot
function of the plotrix package. But I can't assign xtics and ytics to this
plot. I made sure that the matrix has correct colnames() and rownames().
Here's what I do:
a=matrix(1:16, 4, 4)
colnames(a) <- c("X1", "X2", "X3", X4)
ro...