Add a label track
circos.labels(
sectors, x, labels,
facing = "clockwise",
niceFacing = TRUE,
col = par("col"),
cex = 0.8,
font = par("font"),
padding = 0.4,
connection_height = mm_h(5),
line_col = par("col"),
line_lwd = par("lwd"),
line_lty = par("lty"),
labels_height = min(c(cm_h(1.5), max(strwidth(labels, cex = cex, font = font)))),
side = c("inside", "outside"),
labels.side = side,
track.margin = circos.par("track.margin"))
A vector of sector names.
Positions of the labels.
A vector of labels.
fFacing of the labels. The value can only be "clockwise"
or "reverse.clockwise"
.
Whether automatically adjust the facing of the labels.
Color for the labels.
Size of the labels.
Font of the labels.
Padding of the labels, the value is the ratio to the height of the label.
Height of the connection track.
Color for the connection lines.
Line width for the connection lines.
Line type for the connectioin lines.
Height of the labels track.
Side of the labels track, is it in the inside of the track where the regions are marked?
Same as side
. It will replace side
in the future versions.
Bottom and top margins.
This function creates two tracks, one for the connection lines and one for the labels.
If two labels are too close and overlap, this function automatically adjusts the positions of neighouring labels.
# NOT RUN {
# There is no example
NULL
# }
Run the code above in your browser using DataLab