[R] scale for the y-axis

Thomas Lumley tlumley at u.washington.edu
Mon Nov 25 19:49:42 CET 2002


On Mon, 25 Nov 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
>

Divide it by 60?

  tminutes<-time/60
  boxplot ( tminutes~movement*scene, ylab = "Time (minutes)", xlab =
	"Condition")
or just
   boxplot ( I(time/60)~movement*scene, ylab = "Time (minutes)", xlab =
	"Condition")


	-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