I am trying to place more than three tables on one page of a pdf using knitr and xtable. The following code places the fourth table on the second page. If they are size appropriate, is there a way to include all of the tables on one page?
The following example places the fourth table on the second page, although there appears to be room on the first page.
---
title: "Example Code"
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
options(xtable.comment = FALSE)
library(xtable)
```
```{r t1, results='asis'}
xtable(cars[1:2,])
```
```{r t2, results='asis'}
xtable(cars[3:4,])
```
```{r t3, results='asis'}
xtable(cars[5:6,])
```
```{r t4, results='asis'}
xtable(cars[7:8,])
```