This function extracts the plot files from the directories given by the arguments ps_right_dir and ps_left_dir. Based on the list of plot files the R-code chunks that include the plots into the report are generated and added to the result string.

get_plot_chunks(ps_right_dir, ps_left_dir, ps_diagram_na_path)

Arguments

ps_right_dir

directory with plots that appear in the right-hand-side column of the report

ps_left_dir

directory with plots that appear in the left-hand-side column of the report

ps_diagram_na_path

path to the missing-diagram replacement

Value

s_code_chunk_result R-code chunks that include the plots into the report