[R] (no subject)

From: Taka Matzmoto <sell_mirage_ne_at_hotmail.com>
Date: Sun 19 Feb 2006 - 12:29:51 EST


Thanks to Martin Sandiford,
I can draw a graph using lower diagonal type of data. One problem I can't solve is to put appropriate tick marks on the graph

##############################################
x<- matrix(NA,50,50)
x[lower.tri(x)] <- runif(choose(50,2),0,1) plot(1,2,xlim=c(1,50),ylim=c(49,2),xlab="",ylab="",type="n") par(new=T)
image(1-t(x)[,ncol(x):1], col=gray.colors(100), axes=FALSE)
##############################################

I like ticks on both x-axis and y-axis to be located in the middle of each cell.
X-axis needs to start with 1 and end with 50. Y-axis needs to start with 2 and end with 49.

I looked at the help file for "par" and changed some settings but I couldn't succeed.

Any advice on this issue would be greatly appreciated !!

TM



Donít just search. Find. Check out the new MSN Search!



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Feb 19 23:17:16 2006

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 14:08:46 EST