getChromosomeNamesBoundingBox: getChromosomeNamesBoundingBox

View source: R/getChromosomeNamesBoundingBox.R

getChromosomeNamesBoundingBoxR Documentation

getChromosomeNamesBoundingBox

Description

Return the regions where the chromosome names should be placed

Usage

getChromosomeNamesBoundingBox(karyoplot)

Arguments

karyoplot

a karyoplot object returned by a call to plotKaryotype

Details

Given a KaryoPlot object, return the regions where the chromosome labels should be placed. The positions will depend on the plot type used.

Value

Returns a list with four elements (x0, x1, y0 and y1), each of them a named vector of integers with one coordinatefor every chromosome in the plot.

Note

In general, this function is automatically called by karyoploteR and the user never needs to call it.

See Also

plotKaryotype, kpAddChromosomeNames

Examples


kp <- plotKaryotype()
bb <- getChromosomeNamesBoundingBox(kp)
 

bernatgel/karyoploteR documentation built on Feb. 1, 2024, 11:48 p.m.