R: Get current chromosome name

get.current.chromosome {circlize} | R Documentation

## Get current chromosome name

### Description

Get current chromosome name

### Usage

    get.current.chromosome()

### 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

    ## Not run:
    library(circlize)
    circos.initializeWithIdeogram()
    circos.genomicTrackPlotRegion(ylim = c(0, 1), panel.fun = function(region, value, ...) {
        print(get.current.chromosome())
    })
    circos.clear()

    ## End(Not run)

[Package circlize version 0.4.5 Index]