createGraphicsDevice: Open a new graphics device for creating a plot within the...

createGraphicsDeviceR Documentation

Open a new graphics device for creating a plot within the dynamic document

Description

This function is responsible for creating a new R graphics device for a plot that is created via the evaluation of code within an R-Docbook dynamic document. This is not usually called directly, but implicitly by the functions evaluating code in a dynamic document.

Usage

createGraphicsDevice(node, dev = c(jpg = jpeg), dir = character(), verbose = FALSE, dynOpts)

Arguments

node

the XML node describing the plot and providing information about the format, size, etc. of the desired device

dev

a named list giving the graphics device function and the name giving the format of the device. This is over-ridden by a file attribute on the node.

dir

the directory in which the plot is created, by default

verbose

a logical value indicating whether to emit information on the console about the activities of the function.

dynOpts

the DynamicDocContext object providing the options for the evaluation of the

Value

This is called for the side effect of creating an R graphics device in which subsequent graphics commands are displayed.

Author(s)

Duncan Temple Lang

See Also

dynDoc

Examples

  # This is not usually called directly, but implicitly
  # by the functions evaluating code in a dynamic document.

duncantl/XDynDocs documentation built on Jan. 4, 2024, 5:20 p.m.