Displaying 1 result from an estimated 1 matches for "yearxblock".
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),mar=c(1.5,1.5,1.5,1.5))
# Data coded according to a continuous color scheme, with lowest value "light gray", maximu...