Slicing plots generated by ggplot2

后端 未结 1 1999
半阙折子戏
半阙折子戏 2021-01-06 21:08

I wonder if it\'s possible to slice a graph respectively a .png file generated with ggsave. If I do not want to use the default legend ort title and set it to FALSE it leave

相关标签:
1条回答
  • 2021-01-06 21:26

    You could change the plot.margin, e.g.

    p + opts(plot.margin=unit(c(-1, 0, -1, 0), "lines"))
    

    Since version 0.9.2 opts has been replaced by theme:

    p + theme(plot.margin = unit(c(-1, 0, -1, -), "lines"))
    
    0 讨论(0)
提交回复
热议问题