There is no RationalWiki without you. We are a small non-profit with no staff—we are hundreds of volunteers who document pseudoscience and crankery around the world every day. We will never allow ads because we must remain independent. We cannot rely on big donors with corresponding big agendas. We are not the largest website around, but we believe we play an important role in defending truth and objectivity. |
Fighting pseudoscience isn't free. We are 100% user-supported! Help and donate $5, $10, $20 or whatever you can today with ![]() ![]() |
Graphational question
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!