View source: R/compare_plot_report_generic.R
create_code_chunk | R Documentation |
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)
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 |
s_code_chunk_result R-code chunk as a string which includes the plots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.