dev.resize {rcloud.support}R Documentation

Resize device

Description

dev.resize changes the size of the device for future plots.

Usage

dev.resize(width = 510, height = 510, reset=FALSE, ..., device = RCloudDevice)

Arguments

width

new width

height

new height

reset

logical, if TRUE all graphics parameters are reset, otherwise they are retained/copied.

...

additional arguments to be passed to the device function

device

function to call for a new device

Details

Currently this function is implemented by closing the previous device (if existent) and creating a new one with the specified size. Depending on the reset value graphics parameters (other than size) are copied to the new device.

Note that the new device must be compatible with the old one if reset=FALSE otherwise copying the parameters may fail.

Value

new device (invisibly)

Author(s)

Simon Urbanek

See Also

RCloudDevice

Examples

Run examples

plot(1:10)
dev.resize(800,500)
plot(1:10, col=2)

[Package rcloud.support version 2.3-1 Index]