Get information of the circular plot
circos.info(sector.index = NULL, track.index = NULL, plot = FALSE)
Which sectors you want to look at? It can be a vector.
Which tracks you want to look at? It can be a vector.
Whether to add information on the plot
It tells you the basic parameters for sectors/tracks/cells. If both sector.index
and track.index
are set to NULL
, the function would print index for
all sectors and all tracks. If sector.index
and/or track.index
are set,
the function would print xlim
, ylim
, cell.xlim
, cell.ylim
,
xplot
, yplot
, track.margin
and cell.padding
for every cell in specified sectors and tracks.
Also, the function will print index of your current sector and current track.
If plot
is set to TRUE
, the function will plot the index of the sector and the track
for each cell on the figure.
Gu, Z. (2014) circlize implements and enhances circular visualization in R. Bioinformatics.
# NOT RUN {
factors = letters[1:4]
circos.initialize(factors, xlim = c(0, 1))
circos.trackPlotRegion(ylim = c(0, 1))
circos.trackPlotRegion(ylim = c(0, 1))
circos.info(sector.index = "a", track.index = 1)
circos.info(sector.index = "a", track.index = 1:2)
circos.info(sector.index = c("a", "b"), track.index = 1)
circos.info(sector.index = "a")
circos.info(track.index = 1)
circos.info()
circos.info(plot = TRUE)
circos.clear()
# }
Run the code above in your browser using DataLab