[R] filled.contour - plot.axes

Thomas Lumley tlumley at u.washington.edu
Tue Nov 19 18:12:59 CET 2002


On Tue, 19 Nov 2002, Andy Bunn wrote:

> 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(??))}

		 plot.axes={ axis(1); axis(2, at=10*(1:10),labels=2^(1:10))})

will do what I think you want.

	-thomas

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