I have a table that I'd like to plot alongside a ggplot2 plot using a tableGrob. For output purposes, I would like to suppress NA from being printed.
Example:
library(RGraphics) # support of the "R graphics" book, on CRAN
library(gridExtra)
tab <- head(iris)
tab[1,2] <- NA # set a couple values to NA for example purposes
g1 <- tableGrob(tab)
#"Sepal.Length" "Sepal.Width" "Petal.Length" "Petal.Width" "Species"
g2 <- qplot(Sepal.Length, Petal.Length, data=iris, colour=Species)
grid.arrange(g1, g2, ncol=1, main="The iris data")