
graph
can be used with export
function to insert an R graphic.
fig(file = NULL, graph = NULL, format = NULL, ...)
A fig object
character string (
a recordedplot, a lattice plot, a ggplot, or an expression producing a plot (optional if the file already exists)
jpg, png or pdf (or guessed with the file name)
additional arguments (passed to format options)
David Hajage