Label X Axis in Time Series Plot using R

后端 未结 5 1580
無奈伤痛
無奈伤痛 2020-12-01 07:02

I am somewhat new to R and have limited experience with plotting in general. I have been able to work get my data as a time series object in R using zoo, but I am having a

5条回答
  •  再見小時候
    2020-12-01 07:34

    if the time is in Date format, this might be helpful.

     ggplot(data_frame, aes(date,column)) + geom_point() +
        ggtitle("my title")+
        scale_x_date(date_breaks = "1 month",date_labels = "%b") + xlab("month") + 
        ylab("y_axis title")
    

提交回复
热议问题