所谓边距是指图像距离四个边缘的距离
ggplot() + theme(plot.margin=unit(c(1,2,3,4),'lines'))
c(1,2,3,,4)
: 图像距离上
,右
,下
,左
四个边的距离数值
'lines'
: 距离单位;可以是lines
,cm
等
所谓边距是指图像距离四个边缘的距离
ggplot() + theme(plot.margin=unit(c(1,2,3,4),'lines'))
c(1,2,3,,4)
: 图像距离上
,右
,下
,左
四个边的距离数值
'lines'
: 距离单位;可以是lines
,cm
等