Description Usage Arguments Details References Examples
Draw text in a cell, specifically for genomic graphics
1 2 3 4 5 6 | circos.genomicText(region, value = NULL, y = NULL, labels = NULL, labels.column = NULL,
numeric.column = NULL, sector.index = get.cell.meta.data("sector.index"),
track.index = get.cell.meta.data("track.index"), posTransform = NULL,
direction = NULL, facing = "inside", niceFacing = FALSE,
adj = par("adj"), cex = 1, col = "black", font = par("font"), padding = 0,
extend = 0, ...)
|
region |
A data frame contains 2 column which correspond to start position and end position |
value |
A data frame contains values and other information |
y |
A vector or a single value indicating position of text. |
labels |
Labels of text corresponding to each genomic positions |
labels.column |
If labels are in |
numeric.column |
Which column in |
sector.index |
Pass to |
track.index |
Pass to |
posTransform |
Self-defined function to transform genomic positions, see |
facing |
Passing to |
niceFacing |
Should the facing of text be adjusted to fit human eyes? |
direction |
Deprecated, use |
adj |
Pass to |
cex |
Pass to |
col |
Pass to |
font |
Pass to |
padding |
pass to |
extend |
pass to |
... |
Mysterious parameters |
The function is a low-level graphical function and usually is put in panel.fun
when using circos.genomicTrackPlotRegion
.
Gu, Z. (2014) circlize implements and enhances circular visualization in R. Bioinformatics.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
circos.par("track.height" = 0.1, cell.padding = c(0, 0, 0, 0))
circos.initializeWithIdeogram(plotType = NULL)
bed = generateRandomBed(nr = 20)
circos.genomicTrackPlotRegion(bed, ylim = c(0, 1), panel.fun = function(region, value, ...) {
circos.genomicText(region, value, y = 0.5, labels = "text", ...)
})
bed = cbind(bed, sample(letters, nrow(bed), replace = TRUE))
circos.genomicTrackPlotRegion(bed, panel.fun = function(region, value, ...) {
circos.genomicText(region, value, labels.column = 2, ...)
})
circos.clear()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.