get_coordmap_adjusted: Device Adjusted Coordinates

View source: R/graphs_utils.R

get_coordmap_adjustedR 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()


gitdemont/IFC documentation built on Feb. 20, 2025, 12:55 a.m.