I am working with some chron data of the class 'times' and am plotting it in a scatter plot. However, I want the labeling to be in %H:%M:%S
format for the variable on the x axis Tim.V
. Simply adding scale_x_continuous(labels = "%H:%M:%S")
to the code below does not seem to do the trick. I don't need to convert the data in any way - just the format of the label on the x axis. Any insight on how to do this? It seems like it should be simple.
doeplotnet <- ggplot(division, aes(x =Tim.V, y = Age)) + geom_point() + scale_x_reverse()
Sample Data (Age is numeric and Tim.V is 'times')
Age Tim.V
40 00:33:08
36 00:59:27
29 01:05:33
52 00:49:14
49 01:08:00
44 00:30:45