if (plot_var == plot) { plot_caption <- sprintf( "<b>Figure: %s by individual sample (%s).</b>", plot_var, metadata$merge_qc_params$unique_id_var) } else { plot_caption <- sprintf( "<b>Figure: %s by %s.</b>", plot_var, strsplit(plot, "_vs_")[[1]][[2]]) }
knitr::opts_chunk$set(echo = TRUE) if (plot == tail(names(metadata$merged_plots[[plot_var]]), 1)) { #cat("</div>") cat("<hr>") }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.