Learn R Programming

odfWeave (version 0.4.1)

odfInsertPlot: Write XML for image inseration

Description

Writes ODF markup to allow images in documents. Also can copy the image file to the Picture directory.

Usage

odfInsertPlot(file, height, width, units = "in", anchor =
              c("", ""), name = paste("graphics",
              floor(runif(1) * 1000), sep = ""), externalFile =
              FALSE, dest = paste(getwd(), "/Pictures", sep = ""))

Arguments

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 that the image markup will be sandwiched between
name
a name for the figure
dest
the locaiton of the pciture directory
externalFile
a logical; was teh plot automatically generated by R during Sweaving?

Value

  • a character string

Examples

Run this code
odfInsertPlot("plot.png", 4, 4)

Run the code above in your browser using DataLab