r - Possibly inconsistent behavior in qplot()? -


I try to use qplot () to plot as a simple time series using conspiracy I am doing X variable. POSICXLT and Y are just some continuous measurements. Here is the code with some brief comments, any help would be greatly appreciated on the basis of these figures due to these data. As you can see below, I can work around the problem, but I am curious why I do not work as I expect

Some details:
Platform: OS X 10.6 4
R Version: R 2.11.0

Disclaimer: I realize that I can slip into the source code and figure it out myself I never used it and thought that this platform Can be a good topic for.

Disclaimer (2): I'm new to ggplot2

  Library (ggplot2) ws.dat & lt; - read.csv ("~ / path / to / filename.csv", header = f) name (ws.dat) & lt; - c ("s", "t", "w") ws.dat $ new.t & lt; - as.POSIXlt (ws.dat $ t) Ws.dat [1: 5,] ## stw new.t ## 1 29522 2005-07-02 00:00:00 5.00 2005-07-02 00:00: 00 ## 2 29522 2005-07-02 00:10:00 5.29 2005-07-02 00:10:00 ## 3 29522 2005-07-02 00:20:00 5.48 2005-07-02 00:20: 00 ## 4 29522 2005-07-02 00:30:00 5.54 2005-07-02 00:30:00 ## 5 9 522 2005-07-02 00:40:00 5.49 2005-07-02 00:40 : 00 ## The following workplot (such as POSIXlt (ws.dat $ t), ws.dat $ w) ## qplot does not work (as .pOSIXlt (t), w, data = ws.dat) # #If error (length (category) == 1 || difference (range) == 0) {: ## missing value where TRUE / FALSE is needed ## ws.dat $ new.t 



  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -