[R] filled.contour - plot.axes

Andy Bunn abunn at montana.edu
Tue Nov 19 14:17:33 CET 2002


Hi all, Sorry for what might be a trivial issue. However, I am
completely flummoxed!

I'm making a filled contour plot for a publication. It's a continuous
wavelet transform should anybody care. The problem I'm having is
correctly demarking the ticks on the y axis. I have a matrix that has
100 columns. Every 10th column represents a power of 2. So: 
col[10] <- 2 
col[20] <- 4
col[30] <- 8

and so on until col[100] <- 2^10

I'm having trouble scaling my plot accordingly. Can anybody help? I
imagine that one uses the plot.axes argument but I'm having trouble
figuring out how to do it. The matrix is already a log scale so the
ticks and numbers are evenly spaced by 10.

Thanks in advance, Andy

Example:
junk.mat <- matrix(rnorm(12800), 128, 100)
xYears <- 1:nrow(junk.mat)
yPeriod <- 1:ncol(junk.mat)

filled.contour(xYears, 
               yPeriod,
               junk.mat,
               color = terrain.colors)
#?             plot.axes = { axis(2, seq(??))}


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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