[R] tick marks on mfrow=c(3,3) plot

Tony Long tdlong at uci.edu
Mon May 1 19:19:39 CEST 2000


I am generating an array of similar plots using the par(mfrow=c(3,3))
method.  Everything works fine except the plot only puts y-axis tick marks
on cells in column one and x-axis tick marks on cells in row three.  I
would like tick marks on both the x and y axix of all 9 plots in my array.

I am generating plots using the following two functions

three.by.three.plot <- function(ss)
{
par(mfrow=c(3,3))
sub.plot(ss,1.5,0.02)
sub.plot(ss,1.5,0.04)
etc
par(mfrow=c(1,1))
}

sub.plot <- function(ss,gamma, prv)
{
plot(c(5,20,50),ss[ss[,"gam"]==gamma & ss[,"prev"]==prv,"x_Power"],
      type = "n", xlab="4Nc", ylab="Power",xlim=c(0,55), ylim=c(0,1),las=1)
lines(c(5,20,50),ss[ss[,"gam"]==gamma & ss[,"prev"]==prv,"x_Power"],
      type ="b",lty=2, pch=15,mkh=0.11)
....plus some other lines commands....
}


Any suggestions???
Thanks in advance.  Tony

Tony Long
Ecology and Evolutionary Biology
Steinhaus Hall
University of California at Irvine
Irvine, CA
92697-2525

Tel:  (949) 824-2562   (office)
Tel:  (949) 824-5994   (lab)
Fax: (949) 824-2181

email:  tdlong at uci.edu 


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list