This question already has an answer here:
这个问题在这里已有答案:
- How to change x-axis tick label names, order and boxplot colour using R ggplot? 2 answers
- 如何使用R ggplot更改x轴刻度标签名称,顺序和箱图颜色? 2个答案
I would like to customize my own x-axis using plot in R. What i want is that the x-axis would display 40-52, then from 1-40 again, something in the attachment shown below. My data is from 2015 week 40 to 2018 week 4, and I have tried something like 2017_40 to 2018_4, but this will make the graph look really cramped. Thanks in advanced!
我想使用R中的绘图来自定义我自己的x轴。我想要的是x轴将显示40-52,然后再次显示1-40,如下所示的附件中的某些内容。我的数据是从2015年第40周到第201周第4周,我尝试过像2017_40到2018_4这样的东西,但这会使图形显得非常狭窄。先谢谢了!