I would like to make the print format of the axis value labels appear as ``nn%'' instead of just the numbers. Is there a way to do this? Also, the x axis value labels on my horizontal barplot are rotated 90 degrees (perpendicular to the axis) no matter what I do. I tried las=1 but that didn't work. Is this doable? Thanks. $platform [1] "i686-pc-linux-gnu" $arch [1] "i686" $major [1] "1" $minor [1] "3.0" ______________________________________________________________________ Stuart Luppescu -=-=- University of Chicago $(B:MJ8$HCRF`H~$NIc(B -=-=- s-luppescu at uchicago.edu http://www.consortium-chicago.org/people/sl.html http://musuko.uchicago.edu/pubkey.asc for PGP Public Key ICQ #21172047 AIM: psycho7070 Welcome to Lake Wobegon, where all the men are strong, the women are pretty, and the children are above-average. -- Garrison Keillor>> Sent on 30-Aug-2001 at 14:01:41 with xfmail-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 30 Aug 2001 14:18:49 -0500 (CDT), you wrote:>I would like to make the print format of the axis value labels appear as >``nn%'' instead of just the numbers. Is there a way to do this?Yes, you say "axes=F" in the initial plot, then you can put labels anywhere with any strings at all, in a call to axis(). For example: x <- runif(10) y <- runif(10) plot(x,y,axes=F) xat <- pretty(x) yat <- pretty(y) axis(1,at=xat,label=paste(100*xat,'%',sep='')) axis(2,at=yat,label=paste(100*yat,'%',sep='')) box()>Also, the x axis value labels on my horizontal barplot are rotated 90 degrees >(perpendicular to the axis) no matter what I do. I tried las=1 but that didn't >work. Is this doable?I believe that depends on the graphics driver, but I've never played with las. If it works for other kinds of plots but not barplots, then I'd submit it as a bug report. Duncan Murdoch -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._