From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Best way of plotting duration (hms) data with R? Date: Fri, 08 Mar 2013 10:12:34 +0100 Message-ID: <87ip52b6gt.fsf@slate.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDtM9-0003C4-Py for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 04:12:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDtM7-0004Gp-U6 for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 04:12:49 -0500 Received: from plane.gmane.org ([80.91.229.3]:35910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDtM7-0004Gj-Kw for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 04:12:47 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UDtMP-0008VZ-OS for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 10:13:05 +0100 Received: from slate.zedat.fu-berlin.de ([160.45.11.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Mar 2013 10:13:05 +0100 Received: from loris.bennett by slate.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Mar 2013 10:13:05 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I have some data representing durations in an Org file: | *Run* | *reference* | *test30* | *test31* | *test32* | |-------+-------------+-------------+-------------+-------------+ | Dur 2 | 00h 00' 32" | 00h 00' 44" | 00h 00' 39" | 00h 01' 05" | | Dur 3 | 00h 00' 31" | 00h 00' 41" | 00h 00' 45" | 00h 01' 13" | | Dur 4 | 00h 05' 46" | 00h 21' 54" | 00h 40' 10" | 00h 55' 02" | | Dur 5 | 00h 03' 51" | 00h 13' 37" | 00h 23' 07" | 00h 28' 54" | | Dur 7 | 00h 06' 49" | 00h 28' 48" | 00h 35' 23" | 01h 03' 17" | | Dur 8 | 00h 06' 47" | 00h 22' 54" | 00h 47' 42" | 01h 02' 08" | I would like to plot these using R and I'm not sure what approach to take. One way would be to do some Org/Calc magic to convert all the data to, say seconds, and the pass the data to R. My problem with this is that I can't work out how to convert from HMS in Calc, let alone how this would look in Org. The other way would be to pass the data directly to R. However, dealing with durations in R has always seemed very clumsy to me, everything being much more geared towards date-times. I'd be grateful for any pointers on this. Cheers Loris -- no sig is good sig