我正在使用一个包(treemap),它使用grid包生成树形图。但是,我想将这些树形图中的几个绘制在一起,将different color schemes添加到这些图中。 tmPlot功能使用grid.newpage函数,它清除图形窗口。我没有找到像ggplot2对象一样的方法来保存grid.newpage对象。有没有办法将几个grid.newpage对象绘制到同一窗口? ## Example
我想将子文本(一个textGrob)添加到gridViewport - 这可能吗? 我想通了如何子文本添加到一个图表: require(ggplot2)
require(gridExtra)
# make the data
timeSeries <- data.frame(date = seq(as.Date("2001-01-01"), as.Date("2012-01-01"), by