get_coordmap_adjusted {IFC} | R Documentation |
Device Adjusted Coordinates
Description
Helper to extract current device plotting region adjusted to device size
Usage
get_coordmap_adjusted(
coordmap,
width = grDevices::dev.size("px")[1],
height = grDevices::dev.size("px")[2],
ratio = graphics::par("din")/graphics::par("pin")
)
Arguments
coordmap |
current device plotting region. Default is missing. |
width |
current device height in pixel. Default is grDevices::dev.size("px")[1]. |
height |
current device width in pixel. Default is grDevices::dev.size("px")[2]. |
ratio |
current device ratio. Default is graphics::par('din') / graphics::par('pin'). |
Source
computes drawing region in a similar way as shiny:::getPrevPlotCoordmap()
[Package IFC version 0.2.1 Index]