Description Usage Arguments Examples
View source: R/MarkdownReportsDev.R
Save the currently active graphic device (for complicated plots). Insert links to your markdown report, set by "path_of_report". Name the file by naming the variable!
1 2 3 4 5 6 7 8 9 | wplot_save_this(
plotname = ww.autoPlotName(),
...,
OverwritePrevPDF = TRUE,
w = unless.specified("b.defSize", 7),
h = w,
mdlink = FALSE,
PNG = unless.specified("b.usepng", F)
)
|
plotname |
Title of the plot (main parameter) and also the name of the file. |
... |
Pass any other parameter of the corresponding plotting function(most of them should work). |
OverwritePrevPDF |
Overwrite previous PDF image (as name stored in plotnameLastPlot). If FALSE, it creates a name from the date. |
w |
Width of the saved pdf image, in inches. |
h |
Height of the saved pdf image, in inches. |
mdlink |
Insert a .pdf and a .png image link in the markdown report, set by "path_of_report". |
PNG |
Set to true if you want to save the plot as PNG instead of the default PDF. |
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.