View source: R/kpAddCytobandLabels.R
kpAddCytobandLabels | R Documentation |
Plots the base numbers along the chromosome ideograms
kpAddCytobandLabels(karyoplot, cex=0.5, force.all=FALSE, clipping=TRUE, ...)
karyoplot |
(karyoplot object) A valid karyoplot object created by a call to |
cex |
(numeric) The cex parameter for the cytoband labels |
force.all |
(boolean) If true, all cytoband labels are plotted, even if they do not fit into the cytobands (Defaults to FALSE) |
clipping |
(boolean) Only used if zooming is active. If TRUE, the name will be not drawn out of the drawing are (i.e. in margins, etc) even if the data overflows the drawing area. If FALSE, the labels may overflow into the margins of the plot. (defaults to TRUE) |
... |
Any other parameter to be passed to internal function calls. Specially useful for graphic parameters. |
This function can be used to add labels idenfifying the cytobands. It gets the labels from the cytobands information stored in the karyoplot object and it will only plot the labels that fit inside the available space. This means than in some cases (such as when plotting a complete genome with default parameters) it is possible that no labels at all are added.
Returns the original karyoplot object, unchanged.
plotKaryotype
kp <- plotKaryotype()
kpAddBaseNumbers(kp)
kpAddCytobandLabels(kp)
kp <- plotKaryotype(chromosomes="chr17")
kpAddBaseNumbers(kp, tick.dist=10000000, minor.tick.dist=1000000)
kpAddCytobandLabels(kp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.