knitAndSave | 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 |
The plot to knit using |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.