WinXP,Win7
FIRST.BAT打电话给SECOND.BAT。 SECOND.BAT能否安全地取代FIRST.BAT?
FIRST.BAT:
t$heights
SECOND.BAT:
library(gridExtra)
library(ggplot2)
dat <- data.frame(x = c(1, 2, 4), y = c(12, 3, 5), z = c(5, 6, 7))
p <- ggplot(dat, aes(x = x, y = y)) +
geom_point() +
geom_line()
t <- tableGrob(dat, rows = NULL) # notice rows = NULL
t$widths <- unit(rep(1 / ncol(t), ncol(t)), "npc")
t$heights <- unit(rep(1 / nrow(t), nrow(t)), "npc") # new
grid.arrange(t, p, p, nrow = 1)
谢谢!