With the code below, I generate three plots of a CO2 data series. Two of the plots look good, the last one looks weird. I don't understand how ggplot can come up with this plot. Any ideas?
data = read.csv('data4.csv', header = TRUE, comment.char = '#')
data = mutate(data,
time = as.character(time),
date = as.character(date),
timec = chron(times = time))
dataLong = melt(data, id.vars = c('date', 'time', 'timec'))
dataLong = filter(dataLong, variable == 'co2')
ggplot(data, aes(x = timec, y = co2)) + geom_point() + scale_x_chron(format = '%H:%M:%S')
plot(dataLong$timec, dataLong$value)
ggplot(dataLong, aes(x = timec, y = value)) + geom_point() + scale_x_chron(format = '%H:%M:%S')