📜  绘制时间 - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:52:01.148000             🧑  作者: Mango

代码示例1
# data must have the x variable as.POSIXct for time and the y variable

plot(data, xaxt="n")
axis.POSIXct(side=1, at=cut(data$time, "days"), format="%m/%d") 

# or

plot(data$A ~ as.Date(data$Time,"%d/%m/%y"))