雖然無法通過textGrob爲主,以do.call( 「arrangeGrob」)
作品就好了,
test <- do.call("arrangeGrob", c(plots.list[1:2],ncol=2,main=textGrob("test")))
提供了以下錯誤:
"Error in arrangeGrob(list(grobs = list(list(x = 0.5, y = 0.5, width = 1, : input must be grobs!"
我需要主要是textGrob爲了設置字體大小和字體。任何人有一個想法,我在做什麼錯了?
我試過'arrangeGrob(grobs = plots.list [1:4],ncol = 2)'但stil得到錯誤'輸入必須是grobs!'。 'arrangeGrob(plots.list [[1]],plots.list [[2]],plots.list [[3]],plots.list [[4]],ncol = 2)'的作品。 do.call提示工作雖然!非常非常感謝你! –