R/device-size.R
get_device_size.Rd
Generate width and height of a device based upon a given number of plots per page
Generate width and height in pixels of a device based upon a given number of plots per page
get_device_size(
nplots = 1,
layout = "portrait",
units = c("in", "cm", "mm", "px"),
dpi = 300
)
get_device_size_pixel(nplots = 1, layout = "portrait", dpi = 300)
A named numeric
vector of width and height
A named numeric
vector of width and height