Description Usage Arguments Details Value Note See Also Examples
View source: R/getDataPanelBoundingBox.R
Return the bounding box of a data panel in plot coordinates
1 | getDataPanelBoundingBox(karyoplot, data.panel)
|
karyoplot |
a |
data.panel |
a valid data panel name (i.e. 1, 2, "ideogram", "all") |
Given a KaryoPlot object and a data.panel name, return the region where the data panel is placed. The returned values are in plot coordinates, that is, the coord.change.function has been applied.
Returns a list with four elements (x0, x1, y0 and y1), each of them an integer with the plot coordinates for the data.panel
A user is not expected to need this function. It is mainly used by plotting functions, specially when clipping the plot in a zoomed region.
plotKaryotype
, kpDataBackground
1 2 3 | kp <- plotKaryotype(plot.type=2)
dp1 <- getDataPanelBoundingBox(kp, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.