wplot_save_this: wplot_save_this

Description Usage Arguments Examples

View source: R/MarkdownReportsDev.R

Description

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!

Usage

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)
)

Arguments

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.

Examples

1
2
wplot_save_this (plotname = date(), col = "gold1", w = 7
, mdlink = FALSE, ManualName = FALSE)

vertesy/MarkdownReportsDev documentation built on Nov. 15, 2021, 9:59 a.m.