Learn R Programming

circlize (version 0.4.1)

get.current.chromosome: Get current chromosome name

Description

Get current chromosome name

Usage

get.current.chromosome()

Arguments

Details

The function is same as get.current.sector.index and should only be put inside panel.fun when using circos.genomicTrackPlotRegion.

References

Gu, Z. (2014) circlize implements and enhances circular visualization in R. Bioinformatics.

Examples

Run this code
# NOT RUN {
library(circlize)
circos.initializeWithIdeogram()
circos.genomicTrackPlotRegion(ylim = c(0, 1), panel.fun = function(region, value, ...) {
    print(get.current.chromosome())
})
circos.clear()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab