[R] Axis labels
Uwe Ligges
ligges at statistik.uni-dortmund.de
Fri May 24 13:01:55 CEST 2002
Bernd Jagla wrote:
> Dear all
>
> I have a problem with assigning my own labels to the axis of a plot.
> I want to substitute the given labels e.g. 1,2,3,... with a vector of values
> and strings e.g. "12.23", "1.34", "245,5", "Result".
Extended first example from ?image:
x <- y <- seq(-4*pi, 4*pi, len=27)
r <- sqrt(outer(x^2, y^2, "+"))
image(z = z <- cos(r^2)*exp(-r/6), col=gray((0:32)/32),
xaxt="n")
axis(1, at=seq(0, 1, length=4), las=2,
labels=c("12.23", "1.34", "245,5", "Result"))
> B.t.w. how do I rotate these labels so they don't overlap????
par(las=2)
> I want to use the image function to plot.
>
> Thanks for your kind help.
Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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