Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.A41.4.44.0211251048120.13376-100000@homer24.u.washington.edu>
Date: 2002-11-25T18:49:42Z
From: Thomas Lumley
Subject: scale for the y-axis
In-Reply-To: <EDEPKIBGJMPNCCMEDIOLAELPCGAA.simonl@comp.leeds.ac.uk>

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