How can I format the x axis so it can display in hh:mm:ss?
This is a sample of my set:
structure(list(Catraca = c(1L, 253L, 72L, 49L, 2L, 391L, 53L,
52L, 505L, 206L, 105L, 169L, 180L, 222L, 165L, 192L, 286L, 129L,
337L, 270L), Horario = structure(c(360L, 660L, 1740L, 1800L,
1980L, 1980L, 2280L, 2280L, 6060L, 6660L, 6720L, 7200L, 7260L,
7920L, 8460L, 8460L, 8580L, 8580L, 9000L, 9060L), class = "ITime")), .Names = c("Catraca",
"Horario"), class = c("data.table", "data.frame"), row.names = c(NA,
-20L))
The first column are integers, and the second are ITime class, that came from a POSIXct attribute, because I just want to display the hh:mm:ss only.
And this is how I tried to plot:
qplot(data = b, x = Horario, y = Catraca )
. I know that I need to format the Horario some way, but I don't find it on the web.I need your help.
Note:
R studio displays this message Don't know how to automatically pick scale for object of type ITime. Defaulting to continuous.