R/compare_plot_report_generic.R
create_code_chunk.Rd
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)
name of the plot file
path to plot on the left-hand-side
path to the plot on the right-hand-side
s_code_chunk_result R-code chunk as a string which includes the plots