Graphational question

Jump to navigation Jump to search

Graphational question

Hi Lazza, as I know you are a big fan of R I'm sure you can help me with a minor problem. I'm using R-commander on Ubuntu, and all I want to do is generate basic line graphs from a csv log file. The first value on each line is a timestamp in the format 18:30, but R doesn't seem to want to plot the X axis from this - does it recognise time as a valid format? I'm not looking to do any scripting or statistical analysis, just make some fucking graphs! (I gave up on Excel/OpenOfficeSpreadsheet as they wont let me have different Y-axis scales for different lines) How do I get R to do this like in your splendid efforts? (is that sufficient sycophancy?) Cheers.

I would convert the timestamp, using strptime, i.e.

my.time <- strptime(my.cvs[[1]], "%H:%M")

This converts the strings into objects of R's POSIXlt class.

BTW: how do you like R-commander? For a while, I used RKWard, but this tended to crash on the most inconvenient times... The sycophancy is duly noted, no further efforts are necessary!

larronsicut fur in nocte23:25, 24 March 2011