I am trying to adjust the x axis in a graph using ggplot in R. My main reason for wanting to use scale_x_datetime is to have larger breaks in the graph. However, when I run the code, I get the following error:
Error: Invalid input: time_trans works with objects of class POSIXct only
I have tried to assign my time data as POSIXct data (using as.POSIXct), and apparently this scale_x_datetime function needs it to be POSIXct. I can only get it to show up as POSIXlt for some reason.
FYI, my data is in HH:MM:SS, no date associated with it, and is listed as a factor w 4660 levels.
Thank you in advance!