odfInsertPlot {odfWeave} | R Documentation |
Writes ODF markup to allow images in documents. Also can copy the image file to the Picture directory.
odfInsertPlot(file, height, width, units = "in", anchor = c("<text:p>", "</text:p>"), name = paste("graphics", floor(runif(1) * 1000), sep = ""), externalFile = FALSE, dest = paste(getwd(), "/Pictures", sep = ""), caption = NULL)
file |
a string for the image file location |
height |
the dispay height of the image |
width |
the dispay width of the image |
units |
the units for the display dimensions |
anchor |
a character vector of length 2. The image markup will be sandwiched between these two elements |
name |
a name for the figure |
dest |
the locaiton of the pciture directory |
externalFile |
a logical; was the plot automatically generated by
R during Sweaving? If |
caption |
either |
a character string
Max Kuhn
odfInsertPlot("plot.png", 4, 4)