addPlot
From ReporteRs v0.7.7
by David Gohel
Add a plot into a document object
Add a plot into a document object
Usage
addPlot(doc, fun, pointsize = 12, vector.graphic = F, ...)
Arguments
- doc
- document object
- fun
- plot function
- pointsize
- the default pointsize of plotted text in pixels, default to 12.
- vector.graphic
- logical scalar, if TRUE, vector graphics
are produced instead of PNG images.
SVG will be produced for
bsdoc
objects and DrawingML instructions fordocx
andpptx
objects.DrawingML instructions offer the advantage o
- ...
- further arguments passed to or from other methods..
Details
Plot parameters are specified with the ...
argument.
However, the most convenient usage is to wrap the plot code
into a function whose parameters will be specified as '...'.
If you want to add ggplot2 or lattice plot, use
print
function.
vector.graphic
: if document is a pptx or bsdoc document,
vector graphics will always be displayed. Don't use vector
graphics if document is a docx and MS Word version used
to open the document is 2007.
See addPlot.docx
or addPlot.pptx
or addPlot.bsdoc
for examples.
Value
- a document object
See Also
docx
, addPlot.docx
, pptx
, addPlot.pptx
, bsdoc
, addPlot.bsdoc
Community examples
Looks like there are no examples yet.