STHDA forum

Plotting, data visualizations » ggplot2 time on x axis

Slingshot booster



Signed up since: 29/06/2018

Messages: 1

On 06/30/2018 at 00h38
I'm new to R and RStudio and am attempting to learn by working with real data. We collected wind speed and direction data for about 100 minutes (5,998 data) at 1 Hz using an ultrasonic anemometer that records the wind speed and other data. The dataform has time in hh:mm:ss but this doesn't plot well and takes a long time.

How can I either make just a few labeled tick marks with the time or, better still, a few labeled tick marks in elapsed seconds from 0 to 6,000 seconds.

pws <- ggplot(UpperWS, aes(x=time, y=WindSpeed)) + geom_point(size=0.2, shape=20)

Edit by Shellback3 On 06/30/2018 at 00h40
You aren't allowed to write in this category
1 User online : 0 Administrator, 0 Moderator, 0 Member and 1 Visitor
User online : No member online