This help topic is for R version 2.9.0. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/grDevices/html/dev.size.html
dev.size {grDevices}R Documentation

Find Size of Device Surface

Description

Find the dimensions of the device surface of the current device.

Usage

dev.size(units = c("in", "cm", "px"))

Arguments

units

the units in which to return the value – inches, cm, or pixels (device units).

Value

A two-element numeric vector giving width and height of the current device; a new device is opened if there is none, similarly to dev.new().

See Also

The size information in inches can be obtained by par("din"), but this provides a way to access it independent of the graphics sub-system in use.

Examples

dev.size("cm")

[Package grDevices version 2.9.0 ]