Hi!
A newbie question. (ADDED NEW INFO)
I have a set of time stamped data that were collected randomly. I like to create a matrix of plots, but I could not create using either scatterplot or xyplot & time objects.
my data
dataset$Time #POSIX time objects (no set sampling period)
#i built POSIX time objects by dataset$Time<-strptime(tt, "%H:%M:%OS")
#the origial string was formated like this 12:12:12.234 (HH:MM:SS:msec)
dataset$d1, dataset$d2 #integers
dataset$d3 #factor with 10 levels
.
i can do these
plot( dataset$Time, dataset$d1)
scatterplot(dataset$d1 ~ dataset$d2 | dataset$d3, data=dataset)
xyplot(dataset$d1 ~ dataset$d2 | dataset$d3, data=dataset)
However, i can NOT do these (POSIX time object in x-axis)
scatterplot(dataset$d1 ~ dataset$Time | dataset$d3, data=dataset)
xyplot(dataset$d1 ~ dataset$Time | dataset$d3, data=dataset)
(NEW INFO)
Error in structure(.Internal(as.POSIXct(x, tz)), class = c("POSIXt", "POSIXct"), : invalid 'x' argument.
(NEW INFO) but this works (POSIX time object in y-axis)
xyplot(dataset$Time ~ dataset$d1 | dataset$d3, data=dataset)
related, but different question is hexbin. When time objects are added to hexbin, the plot from the hexbin does not show correct time format on the units.
bin<-hexbin(dataset$Time, dataset$d1)
plot(bin))
What should I do?
Thanks for looking into it!!