get_figure_chunk_df: Get code chunks for plotting all figures

View source: R/figures_template.R

get_figure_chunk_dfR Documentation

Get code chunks for plotting all figures

Description

Get code chunks for plotting all figures

Usage

get_figure_chunk_df(
  df,
  font_family = get_font_df()[["family"]],
  function_call = "RUBer::plot_figure",
  heading_starting_lvl = 1L
)

Arguments

df

Data frame with columns figure_nr

font_family

Character, the font family to use for all plots, defaults to get_font_df()[["family"]]

function_call

Character, the function call for each plot chunk, defaults to RUBer::plot_figure

heading_starting_lvl

Integer, the level of the heading.

Value

Data frame with columns figure_nr, chunk_heading, chunk_subheading, chunk_figure_df and chunk_plot_figure

Examples

get_figure_chunk_df(RUBer::df_example %>% dplyr::filter(report_nr == 1L))

RichardMeyer-Eppler/RUBer documentation built on June 2, 2022, 7:24 p.m.