grid.dvi: Render DVI File in R

View source: R/grid.R

grid.dviR Documentation

Render DVI File in R

Description

Render a DVI file in R graphics.

Usage

dviGrob(dvi, ...) 
## S3 method for class 'character'
dviGrob(dvi, x = 0.5, y = 0.5,
        default.units = "npc", just = "centre", 
        rot = 0, device = names(dev.cur()), name = NULL,
        engine=latexEngine,
        initFonts=getOption("dvir.initFonts"),
        ...)
## S3 method for class 'DVI'
dviGrob(dvi, x = 0.5, y = 0.5,
        default.units = "npc", just = "centre", 
        rot = 0, device = names(dev.cur()), name = NULL, 
        engine=latexEngine,
        initFonts=getOption("dvir.initFonts"),
        ...)

grid.dvi(...)

Arguments

dvi

A "DVI" object, as produced by readDVI, or the name of a DVI file.

x, y

Numeric values or units specifying where to draw the output.

default.units

Units to use if x or y are numeric.

just

Justification of the output relative to the x/y location.

rot

Angle of rotation (degrees).

device

Character value describing the name of the device that the output is to be drawn on.

name

Character value giving name for the grob.

engine

The TeX engine that was used to generate the DVI file.

initFonts

Whether to reset the font cache; set to FALSE to allow font caching across multiple calls.

...

Arguments specific to methods of dviGrob or, for grid.dvi, arguments passed to dviGrob.

Value

A "DVIgrob" object.

Author(s)

Paul Murrell

See Also

readDVI, grid.latex

Examples

dvi <- readDVI(system.file("dvi", "test.dvi", package="dvir"))
## Not run: 

grid.dvi(dvi)

## End(Not run)

pmur002/dvir documentation built on Sept. 2, 2022, 3:03 p.m.