Skip to content
Prev 353519 / 398502 Next

Plotting wind direction as arrows with precipitation

I don't see any conversion of your time data from character to a time type, so it is probably converting to factor within the ggplot function. Something like

Sys.setenv(TZ="Etc/GMT+5") # you need to study time types, including ?strptime

Sandy$Deal1 <- as.POSIXct( Sandy$Deal1, format="%m/%d/%Y %H:%M")

The other problem I see is that you probably need to have your data in long form to get the results you want, so you should look at the vignettes for the reshape2 or tidyr packages.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
On August 10, 2015 12:05:27 AM EDT, DJ L <rhelp10 at gmail.com> wrote: