Closed aliarsalankazmi closed 8 years ago
Please post your question on stackoverflow with the gtable and/or ggplot2 tag. This isn't related to the gridExtra package (that wiki page should not really be here, but I don't know where to put it). FWIW I'm guessing there is a problem in your rmarkdown document, try to make a minimal reproducible example.
I am copy-pasting the code found in this github page (https://github.com/baptiste/gridextra/wiki/arranging-ggplot)
The code snippet follows:
When I copy-paste this code in console, it runs fine, printing the plots as expected. But when I knit my rmarkdown document in which this code is pasted, it gives an error of length(widths) == ncol is not TRUE.
The versions for the packages in use are: rmarkdown: 0.9.5 knitr: 1.12.3 gtable: 0.2.0