# NOT RUN {
library(dplyr)
library(sknifedatar)
library(ggplot2)
dataset <- iris %>%
group_by(Species) %>%
tidyr::nest() %>%
mutate(
.plot = purrr::map(data, ~ ggplot(.x, aes(x = Sepal.Length, y = Petal.Length)) + geom_point()),
.table = purrr::map(data, ~ summary(.x) %>% knitr::kable())
) %>%
ungroup()
automagic_tabs2(input_data = dataset, panel_name = Species, .plot, .table)
unlink("figure", recursive = TRUE)
# }
Run the code above in your browser using DataLab