Answers for "plot time in r"

R
1

plot time in r

# 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"))
Posted by: Guest on September-22-2020

Browse Popular Code Answers by Language