[R] scale for the y-axis

Bill Oliver oliver at colorado.edu
Mon Nov 25 19:15:43 CET 2002


simon lessels wrote:
> hi there
> I hope you can help me
> I'm doing a boxplot and I'm trying to change the y-axis from seconds to
> minutes
> I do this:
> boxplot ( time~movement*scene, ylab = "Time (seconds)", xlab = "Condition")
> 
> but seconds goes from 0 to 900 and I'm looking to change it into minutes
> 
> I've been though the manuals but I don't know what you call this function so
> its hard to look it up
> I've looked up scale y-axis division etc, but can't find anything
> 
> can you help?
> 

I believe the following is what you are after. Because only division by 
a constant is involved, you are not likely to find anything in the R 
documentation about this.

boxplot ( (time/60) ~ movement*scene, ylab = "Time (minutes)", xlab = 
"Condition")

-Bill


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