search for: trivial_matrix

Displaying 2 results from an estimated 2 matches for "trivial_matrix".

2010 Mar 09
3
Fine Tuning Plotrix
...9;b','c','d','e')? (4) Do I need to resort to color.legend if e.g. I want to rotate the legend and align it to the y axis? Many thanks Lorenzo ############################################################ rm(list=ls()) library(Cairo) library(plotrix) set.seed(1234) trivial_matrix<-matrix(rnorm(25),nrow=5) CairoPDF("matrix2D.pdf") par( mar = c(4.5,5, 2, 1) + 0.1) color2D.matplot(trivial_matrix,main="A trivial Plot",xlab = expression(paste(k)), ylab=expression(paste(R[g])),cex.axis=1.4,cex.lab=1.6, cex.main=1.6, show.legend=TRUE, show.values=1,vcol=...
2010 Feb 26
3
Plotting a Trivial Matrix
Dear All, Consider a matrix (N x N) where each entry is either zero or one (can hardly get any simpler). Now, I would like to plot it as a 'chessboard' where every matrix entry is a black (1) or white (0) square. Whatever tool I use to plot it, it should not try to interpolate the data at all. I found some online references http://www.phaget4.org/R/image_matrix.html but probably I can