gdevice: Prepare Graphics Device

View source: R/gdevice.R

gdeviceR Documentation

Prepare Graphics Device

Description

A wrapper function to prepare a graphics device for output.

Usage

gdevice(type = "", file, width = 8.5, height = 8.5, layout, ...)

Arguments

type

Character string specifying the type of graphics device to be created (e.g. 'pdf', 'jpg', ...).

file

File name, excluding file extension suffix.

width, height

Dimensions in inches.

layout

Specify plot layout of graphics device.

Examples

gdevice("pdf", "Test.pdf")
gdevice() # Equivalent to 'dev.new()'.
plot(runif(100), runif(100))
dev.off()

TobieSurette/gulf.graphics documentation built on Feb. 10, 2024, 10:58 p.m.