Learn R Programming

rvg (version 0.1.2)

dml_docx: DrawingML graphic device for Microsoft Word

Description

Graphics devices for Microsoft Word DrawingML format.

Usage

dml_docx(file = "Rplots.dml", width = 6, height = 6, bg = "white", fonts = list(), pointsize = 12, editable = TRUE, id = 1L, last_rel_id = 1L, next_rels_id, raster_prefix = "raster_", standalone = TRUE, fontname_serif = NULL, fontname_sans = NULL, fontname_mono = NULL, fontname_symbol = NULL)

Arguments

file
DrawingML file.
height, width
Height and width in inches.
bg
Default background color for the plot (defaults to "white").
fonts
Named list of font names to be aliased with fonts installed on your system. If unspecified, the R default families sans, serif, mono and symbol are aliased to the family returned by match_family().
pointsize
default point size.
editable
should vector graphics elements (points, text, etc.) be editable.
id
specifies a unique identifier (integer) within the document that will contain the DrawingML instructions.
last_rel_id
specifies the last unique identifier (integer) within relationship file that will be used to reference embedded raster images if any.
next_rels_id
deprecated. Use last_rel_id instead.
raster_prefix
string value used as prefix for png files produced when raster objects are printed on the graphical device.
standalone
produce a standalone drawingml file? If FALSE, omits xml header and namespaces.
fontname_serif, fontname_sans, fontname_mono, fontname_symbol
font names for font faces. Used fonts should be available in the operating system. These arguments are deprecated in favor of the fonts argument.

See Also

Devices

Examples

Run this code

dml_docx( file = tempfile() )
plot(1:11,(-5:5)^2, type='b', main="Simple Example")
dev.off()

Run the code above in your browser using DataLab