getMainTitleBoundingBox: getMainTitleBoundingBox

View source: R/getMainTitleBoundingBox.R

getMainTitleBoundingBoxR Documentation

getMainTitleBoundingBox

Description

Return the regions where the chromosome names should be placed

Usage

getMainTitleBoundingBox(karyoplot)

Arguments

karyoplot

a karyoplot object returned by a call to plotKaryotype

Details

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

Value

Returns a list with four elements (x0, x1, y0 and y1), each of them an integer with the coordinates for the main title

Note

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

See Also

plotKaryotype, kpAddMainTitle

Examples


kp <- plotKaryotype()
bb <- getMainTitleBoundingBox(kp)
 

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