blob: 3d2f0751169b30daaa96ceae7ad30990218a5521 [file] [log] [blame]
Hao Zhucc21dc72017-05-20 01:15:25 -04001% 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{
7landscape(kable_input, margin = NULL)
8}
9\arguments{
Hao Zhu76281fe2017-07-03 19:33:09 -040010\item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified}
Hao Zhucc21dc72017-05-20 01:15:25 -040011
12\item{margin}{Customizable page margin for special needs. Values can be
13"1cm", "1in" or similar.}
14}
15\description{
Hao Zhu8f417202017-05-20 16:37:14 -040016This function will put the table on an single landscape page.
17It's useful for wide tables that cann't be printed on a portrait page.
Hao Zhucc21dc72017-05-20 01:15:25 -040018}
Hao Zhu78e61222017-05-24 20:53:35 -040019\examples{
Hao Zhu9399dcc2020-08-26 17:27:38 -040020\dontrun{
Hao Zhu78e61222017-05-24 20:53:35 -040021landscape(knitr::kable(head(mtcars), "latex"))
Hao Zhu9399dcc2020-08-26 17:27:38 -040022}
Hao Zhu78e61222017-05-24 20:53:35 -040023
24}