无需特定符号,回车即换行比如:
x<-rnorm(100)
plot(x,x,"n",
xlab="",ylab="")
常用的拼图包:par()中的mfrow、grid.arrange、cowplot、customLayout、patchwork等等其中最方便快捷且功能强大的是patchwork
官网: https://patchwork.data-imaginist.com/index.html
图形准备
横着拼就"|"或"+",竖着拼就"/"
默认情况下,patchwork会是拼的图呈方形,并按行排列。
更多布局设置,参考: https://patchwork.data-imaginist.com/articles/guides/layout.html
当进行拼图时,后一个图是active的,可以接受新的ggplot2对象比如geoms,labels等
通过额外传入plot_annotation()参数来设置
patchwork还可以自动标记。(拉丁字母,阿拉伯数字,罗马数字都可以。)
设置字体大小