scale_x_date(name = ..., breaks = ..., labels = ..., limits = ...) scale_x_date(name="x轴名称",breaks=date_breaks("1 month"),labels=date_format("%Y-%m"),limits=as.Date(c("2014-01-01","2018-01-01")))
Name |
Description |
|
name |
Label for x axis. |
x轴名称 |
breaks |
Points at which x gridlines appear. |
刻度值 |
labels |
Labels for x ticks. |
刻度间隔 |
limits |
Where x axis starts/stops. |
刻度开始结束值(只能为1-2位) |
http://ggplot.yhathq.com/docs/scale_x_date.html
|
请发表评论