【发布时间】:2018-06-25 08:38:48
【问题描述】:
我有一个ggplot:
ggplot()+geom_line(data = data.frame(y = c(1,2,3), x=c(1,2,3)), aes(y=y,x=x))
我想保留默认的轴中断和标签(在我的程序中,我不知道先验图的限制。)
在 x= 1.5 时,我想在 x 轴上添加一个额外的刻度线,标签为“hi”。
我知道scale_x_continuous(),但我不知道如何访问“由转换对象计算的默认中断”。
【问题讨论】: