如何使用ggplot2删除折线图中的边距?

时间:2018-06-11 06:36:11

标签: r ggplot2 margin

我想使用ggplot2删除折线图中的边距。我的例子如下:

df <- data.frame(dose=c("D0.5", "D1", "D2"),
             len=c(4.2, 10, 29.5))
ggplot(data=df, aes(x=dose, y=len, group=1)) +
       geom_line()+ 
       geom_point()

我想删除边框区域,如箭头所示。非常感谢。

enter image description here

0 个答案:

没有答案