Learn R Programming

⚠️There's a newer version (2.17.2) of this package.Take me there.

R.devices (version 2.17.0)

Unified Handling of Graphics Devices

Description

Functions for creating plots and image files in a unified way regardless of output format (EPS, PDF, PNG, SVG, TIFF, WMF, etc.). Default device options as well as scales and aspect ratios are controlled in a uniform way across all device types. Switching output format requires minimal changes in code. This package is ideal for large-scale batch processing, because it will never leave open graphics devices or incomplete image files behind, even on errors or user interrupts.

Copy Link

Version

Install

install.packages('R.devices')

Monthly Downloads

3,709

Version

2.17.0

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

January 19th, 2021

Functions in R.devices (2.17.0)

devList

Lists the indices of the open devices named by their labels
devEval

Opens a new graphics device, evaluate (graphing) code, and closes device
devGetLabel

Gets the labels of zero or more devices
devIsOpen

Checks if zero or more devices are open or not
devDone

Closes zero or more open devices except screen (interactive) devices
eps

EPS graphics device
devSetLabel

Sets the label of a device
devIsInteractive

Checks whether a device type is interactive or not
DevEvalFileProduct

The DevEvalFileProduct class
DevEvalProduct

The DevEvalProduct class
Non-documented objects

Non-documented objects
getDataURI.DevEvalFileProduct

Gets content as a Base64-encoded data URI
architecture

Get the architecture of an object or coerce it into another
R.devices-package

Package R.devices
as.character.DevEvalProduct

Gets a character representation of the product
devNew

Opens a new device
getPathname.DevEvalFileProduct

Gets the (relative) pathname, filename and path
devOff

Closes zero or more devices
favicon

Favicon graphics device
getType.DevEvalProduct

Gets the type
getFullname.DevEvalProduct

Gets the full name, name and tags
devOptions

Gets the default device options
toNNN

Methods for creating image files of a specific format
withPar

Evaluate an R expression with graphical parameters set temporarily
devSet

Activates a device
getMimeType.DevEvalFileProduct

Gets the MIME type
jpeg2

A JPEG device for Bitmap Files via GhostScript
nulldev

A \"null\" graphics device voiding all output
png2

A PNG device for Bitmap Files via GhostScript
print.RecordedPlot

Automatically replays a recorded plot
capturePlot

Captures a plot such that it can be redrawn later/elsewhere
capabilitiesX11

Check whether current R session supports X11 or not