【发布时间】:2018-02-19 22:28:34
【问题描述】:
我像这样将 ggplot 保存在 for 循环中。我总共有大约 300 个地块 (i = 1,,,300)。我想用pdf 文件保存这些图,但在 pdf 文件的一页(2 x 2)中保存 4 个图。如果是这样,pdf 文件的输出应该有 75 页。
for( i in 1:300){
plot_list[[i]] = ggplot(out, aes(basket_size_group_by2dol, pct_trips_w_item, colour=channel2)) + ylim(min00,max00) +
geom_point()
}
【问题讨论】: