draw_plot(plot, x=0, y=0, width=1, height=1)
其中:
plot:将要放置的图形
x,y:控制图形位置
width,height:图形的宽度和高度
draw_plot_label...():为图形添加标签
draw_plot_label(label, x=0, y=1, size=16, ...)...其中:
label:标签
x,y:控制标签位置
size:标签字体大小
下面通过一个例子来讲解如何将多个图形放置在特定的位置。..."), vp=define_region(row=3, col=1:2))
设置共同图例
ggpubr::ggarrange()可以为组合图形添加共同图例
common.legeng=TRUE:在图形旁边添加图例...ymin, ymax)
其中:
grob:要添加的图形元素
xmin, xmax: x轴方向位置(水平方向)
ymin, ymax: y轴方向位置(竖直方向)
ggplot图形中添加table
density.p