get_coordmap_adjusted | R Documentation |
Helper to extract current device plotting region adjusted to device size
get_coordmap_adjusted(
coordmap,
width = grDevices::dev.size("px")[1],
height = grDevices::dev.size("px")[2],
ratio = graphics::par("din")/graphics::par("pin")
)
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'). |
computes drawing region in a similar way as shiny:::getPrevPlotCoordmap()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.