I am trying to find a way to fit multiple plots in a customized fashion in three rows on a PDF. For the first row I want to plot a hierarchal clustering dendrogram, then for the second row I want two tables side by side generated using the tableGrob function of the extraGrid library. For the third row I want to fit a heatmap. Appreciate all your inputs and suggestions.
This is the snippet of my code:
pdf("test.pdf", width = 12, height = 10)
layout(matrix(c(1,2,4,1,3,4),3,2))
plot(hierarchal,label=Duration,main=label)
grid.arrange(x) #table1
grid.arrange(y) #table2
ggplot(data_heat, aes(x=time, y=gene)
dev.off()