我从我的Garmin有一些GPS数据我想绘制时间缩放图。我在使用ggplot2的网上找到了一些例子,但是有问题 - 我相信我可能需要重新格式化我的日期时间列,但是无法找到'net并查看ggplot2源代码。任何帮助非常感谢。ggplot2:时间尺度图形问题
> library(ggplot2)
> x <- read.csv("tst.csv",header=TRUE,colClasses="character")
> head(x)
counter HeartRateBpm_AVG LastTimeStamp
1 1 102.25 9/3/2011 7:32
2 2 138.75 9/3/2011 7:33
3 3 138.75 9/3/2011 7:33
4 4 138.75 9/3/2011 7:33
5 5 138.75 9/3/2011 7:33
6 6 138.75 9/3/2011 7:34
> ggplot(data=x,aes(x=LastTimeStamp,y=HeartRateBpm_AVG)) + scale_x_date(format = "%S") + geom_line()
'dput(head(x,20))'会更好 – Chase