landscape_after: Print the table on an isolated landscape page in PDF like the...

View source: R/landscape_after.R

landscape_afterR Documentation

Print the table on an isolated landscape page in PDF like the function inn the kableExtra package

Description

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

Usage

landscape_after(kable_input, margin = NULL, clearpage = FALSE)

Arguments

kable_input

Output of knitr::kable() with format specified

margin

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

clearpage

If TRUE the landscape page is inserted after the page break. Requires the LaTeX package afterpage.

Examples

## Not run: 
landscape_after(knitr::kable(head(mtcars), "latex"), clearpage = TRUE)

## End(Not run)


julianre/jRmisc documentation built on June 4, 2024, 11:32 p.m.