dp: Plot Device Wrapper

View source: R/dp.R

dpR Documentation

Plot Device Wrapper

Description

This is a wrapper to plot the current device to a file.

Usage

dp(path, save = SaveImage, width, dev, res = 300, units = "in", ...)

Arguments

path

file path to save the device window. If missing, file.choose will be called to select the file

save

logical value to save image. If missing, the global environment will be searched for a logical value named 'SaveImage'

width

device width in units specified by units. If missing the width of the current device will be used

dev

suitable printing device, defaults to png but can be one of bmp, jpeg, or tiff. If not specified, the device will be determined by the path extension

res

resolution in pixels per units, default of 300

units

the units in which width is given. Defaults to "in" (inches) rather than the normal default of px (pixels)

...

additional paramters passed to dev.print

Value

The basename of the saved file will be returned or NULL if nothing was saved.

See Also

dev.print that is called by this function


ornelles/EBImageExtra documentation built on Aug. 10, 2022, 11:44 p.m.