Given the name of the plot file and the paths to the plot pair to be included in the report, the R-code chunk used in the RMarkdown report is generated and returned as a string.

create_code_chunk(ps_plot_file, ps_left_plot_path, ps_right_plot_path)

Arguments

ps_plot_file

name of the plot file

ps_left_plot_path

path to plot on the left-hand-side

ps_right_plot_path

path to the plot on the right-hand-side

Value

s_code_chunk_result R-code chunk as a string which includes the plots