R: Creating a ggplot2 barchart of timedate y-variable -
i'm having lot of trouble trying create otherwise simple ggplot barchart of timedate variable on y-axis. plots fine using geom_point or geom_line , replace geom_bar , r either crashes or returns me blank, grey graph. my raw data character strings of format: day time 1/1/2015 2:30:14 2/1/2015 15:10:40 3/1/2015 8:50:05 and knowing ggplot2 can bit picky time , date classes, format variables posixct , date follows: library(ggplot2); library(scales) datetime <- data.frame(date = c("1/1/2015", "2/1/2015", "3/1/2015"), time = c("2:30:14", "15:10:40", "8:50:05")) datetime$date <- as.date(datetime$date, format="%m/%d/%y") datetime$time <- as.posixct(datetime$time, format="%h:%m:%s") then, creating simple scatter plot of data works fine: ggplot(datetime, aes(date, time)) + geom_point() + xlab("day") + ylab("time") + scale_y...