Supports using a named list containing multiple ggplot objects, which can be used in an R Markdown report, separated by headers. Internally, the headers are generated with the markdownHeader function.

markdownPlots(list, headerLevel = 2L)

Arguments

list

list. Named list containing ggplot objects.

headerLevel

integer(1) (1-7). Markdown header level.

Value

Graphical output of plots. Separated by Markdown headers.

Note

Updated 2019-07-28.

See also

Examples

loadRemoteData(url = file.path(basejumpTestsURL, "plotlist.rds"))
#> Importing plotlist.rds using base::readRDS().
names(plotlist)
#> [1] "continuous" "discrete"
markdownPlots(list = plotlist)
#> #> #> ## continuous #>
#> #> #> ## discrete #>