Hao Zhu | cc21dc7 | 2017-05-20 01:15:25 -0400 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/landscape.R |
| 3 | \name{landscape} |
| 4 | \alias{landscape} |
| 5 | \title{Print the table on an isolated landscape page in PDF} |
| 6 | \usage{ |
| 7 | landscape(kable_input, margin = NULL) |
| 8 | } |
| 9 | \arguments{ |
Hao Zhu | 76281fe | 2017-07-03 19:33:09 -0400 | [diff] [blame] | 10 | \item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified} |
Hao Zhu | cc21dc7 | 2017-05-20 01:15:25 -0400 | [diff] [blame] | 11 | |
| 12 | \item{margin}{Customizable page margin for special needs. Values can be |
| 13 | "1cm", "1in" or similar.} |
| 14 | } |
| 15 | \description{ |
Hao Zhu | 8f41720 | 2017-05-20 16:37:14 -0400 | [diff] [blame] | 16 | This function will put the table on an single landscape page. |
| 17 | It's useful for wide tables that cann't be printed on a portrait page. |
Hao Zhu | cc21dc7 | 2017-05-20 01:15:25 -0400 | [diff] [blame] | 18 | } |
Hao Zhu | 78e6122 | 2017-05-24 20:53:35 -0400 | [diff] [blame] | 19 | \examples{ |
| 20 | landscape(knitr::kable(head(mtcars), "latex")) |
| 21 | |
| 22 | } |