Learn R Programming

circlizePlus (version 0.9.0)

ccGenomicAxis: Add genomic axes

Description

Object ccGenomicCellGeom will call the function circlize::circos.genomicAxis while drawing.

Usage

ccGenomicAxis(
  h = "top",
  major.at = NULL,
  labels = NULL,
  major.by = NULL,
  tickLabelsStartFromZero = TRUE,
  labels.cex = 0.4 * par("cex"),
  ...
)

Value

Object ccGenomicCellGeom

Arguments

h

Position of the axes. "top" or "bottom".

major.at

Major breaks. If major.at is set, major.by is ignored.

labels

labels corresponding to major.at. If labels is set, major.at must be set.

major.by

Increment of major ticks. It is calculated automatically if the value is not set (about every 10 degrees there is a major tick).

tickLabelsStartFromZero

Whether axis tick labels start from 0? This will only affect the axis labels while not affect x-values in cells.

labels.cex

The font size for the axis tick labels.

...

Other arguments pass to circos.axis.

Examples

Run this code
library(circlizePlus)
cc <- ccPlot(initMode = "initializeWithIdeogram",
chromosome.index = paste0("chr", 1:4), plotType = NULL)
track <- ccTrack(ylim = c(0, 1))
cell <- ccCell(sector.index = "chr1") + ccGenomicAxis()
e <- track + cell
cc + e

Run the code above in your browser using DataLab