ggplot2 theme with no axes or grid

前端 未结 3 1555
感动是毒
感动是毒 2020-12-05 00:24

I am trying to make a plot with no information beyond the data. No axes; no grid; no title; just the plot.

But I keep getting extra margins and padding that I can\'t

3条回答
  •  死守一世寂寞
    2020-12-05 01:06

    try

    last_plot() + theme(axis.ticks.length = unit(0.001, "mm")) + labs(x=NULL, y=NULL)
    

    you may want to file a bug for the 0 tick length.

提交回复
热议问题