tabset_list: Create tabset from a list

Description Usage Arguments Examples

View source: R/tabset_list.R

Description

Hvert element i listen blir printet i en "tab" i en markdown rapport.

Usage

1
tabset_list(list, header_level, header_names = NULL)

Arguments

list

A list of elements to be printed in each tab

header_level

An integer specifying the level of the headers. Må være en mer enn overskriften over.

header_names

Vektor med navn på tabs.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
```{r cars}
my_plot_function <- function(cylinders) {
mtcars %>%
filter(cyl == cylinders) %>%
ggplot(aes(hp, mpg)) +
geom_point()
}
p <- purrr::map(c(4, 6, 8), my_plot_function)
```

# Overskrift {.tabset}
```{r pressure, results="asis"}
tabset_list(p, 2)
```

eysteinmeese91/magimisc documentation built on Oct. 3, 2020, 10:10 a.m.