knitAndSave {ufs} | R Documentation |
knitAndSave
knitAndSave( plotToDraw, figCaption, file = NULL, path = NULL, figWidth = ufs::opts$get("ggSaveFigWidth"), figHeight = ufs::opts$get("ggSaveFigHeight"), units = ufs::opts$get("ggSaveUnits"), dpi = ufs::opts$get("ggSaveDPI"), catPlot = ufs::opts$get("knitAndSave.catPlot"), ... )
plotToDraw |
|
figCaption |
The caption of the plot (used as filename if no filename is specified). |
file, path |
The filename to use when saving the plot, or the path where to save the
file if no filename is provided (if |
figWidth, figHeight |
The plot dimensions, by default specified in inches (but 'units' can
be set which is then passed on to |
units, dpi |
The units and DPI of the image which are then passed on to |
catPlot |
Whether to use |
... |
Additional arguments are passed on to |
The knitFig()
result, visibly.
## Not run: plot <- ggBoxplot(mtcars, 'mpg'); knitAndSave(plot, figCaption="a boxplot", file=tempfile(fileext=".png")); ## End(Not run)