circos.yaxis: Draw y-axis

Description Usage Arguments Details Examples

Description

Draw y-axis

Usage

1
2
3
4
5
6
7
circos.yaxis(side = c("left", "right"), at = NULL, labels = TRUE, tick = TRUE,
    sector.index = get.cell.meta.data("sector.index"),
    track.index = get.cell.meta.data("track.index"),
    labels.font = par("font"), labels.cex = par("cex"),
    labels.niceFacing = TRUE,
    tick.length = convert_x(1, "mm", sector.index, track.index),
    lwd = par("lwd"))

Arguments

side

add the y-axis on the left or right of the cell

at

If it is numeric vector, it identifies the positions of the ticks. It can exceed ylim value and the exceeding part would be trimmed automatically.

labels

labels of the ticks. The exceeding part would be trimmed automatically. The value can also be logical (either an atomic value or a vector) which represents which labels to show.

tick

Whether to draw ticks.

sector.index

Index for the sector

track.index

Index for the track

labels.font

font style for the axis labels

labels.cex

font size for the axis labels

labels.niceFacing

Should facing of axis labels be human-easy

tick.length

length of the tick

lwd

line width for ticks

Details

Note, you need to set the gap between sectors manually by circos.par to make sure there is enough space for y-axis.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
op = par(no.readonly = TRUE)

factors = letters[1:8]
circos.par(points.overflow.warning = FALSE)
circos.par(gap.degree = 8)
circos.initialize(factors = factors, xlim = c(0, 10))
circos.trackPlotRegion(factors = factors, ylim = c(0, 10), track.height = 0.5)
par(cex = 0.8)
for(a in letters[2:4]) {
  circos.yaxis(side = "left", sector.index = a)
}
for(a in letters[5:7]) {
  circos.yaxis(side = "right", sector.index = a)
}
circos.clear()

par(op)

eilslabs/circlize documentation built on May 16, 2019, 1:23 a.m.