I am trying to use qplot () to build a simple time series, as can be done with plot (). The variable x is equal to asPOSIXlt, and y is just some continuous measurement. Here is the code with brief comments. Any help regarding why these data.frames behave differently is greatly appreciated. As you can see below, I can solve the problem, but I'm curious why this is not working as I expected.
A few details:
platform: OS X 10.6.4
R: R 2.11.0
Disclaimer: I understand that I could delve into the source code and figure it out myself. I never used SO and thought this might be a good topic for this forum.
Disclaimer (2): I'm new to ggplot2
library(ggplot2) ws.dat <- read.csv("~/path/to/filename.csv",header=F) names(ws.dat) <- c("s","t","w") ws.dat$new.t <- as.POSIXlt(ws.dat$t) ws.dat[1:5,]
rtelmore
source share