Learn R Programming

kableExtra (version 1.4.0)

landscape: Print the table on an isolated landscape page in PDF

Description

This function will put the table on an single landscape page. It's useful for wide tables that can't be printed on a portrait page.

Usage

landscape(kable_input, margin = NULL)

Arguments

kable_input

Output of knitr::kable() with format specified

margin

Customizable page margin for special needs. Values can be "1cm", "1in" or similar.

Examples

Run this code
if (FALSE) {
landscape(knitr::kable(head(mtcars), "latex"))
}

Run the code above in your browser using DataLab