
Last chance! 50% off unlimited learning
Sale ends in
Add labels to specified genomic regions
circos.genomicLabels(bed, labels = NULL, labels.column = NULL,
col = par("col"), cex = 0.8, font = par("font"), padding = 0.4,
connection_height = convert_height(5, "mm"),
line_col = par("col"), line_lwd = par("lwd"), line_lty = par("lty"),
labels_height = min(c(convert_height(1.5, "cm"),
max(strwidth(labels, cex = cex, font = font)))),
side = c("inside", "outside"), track.margin = circos.par("track.margin"))
a data frame in bed format
a vector of labels corresponding to rows in bed
if the label column is already in bed
, the index for this column in bed
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?
bottom and top margins
The function adds labels for the specified regions. The positions of labels are arranged so that they are not overlapping to each other.
# NOT RUN {
circos.initializeWithIdeogram(plotType = c("labels", "axis"))
bed = generateRandomBed(nr = 100, fun = function(k) sample(letters, k, replace = TRUE))
bed[1, 4] = "aaaaaaaa"
circos.genomicLabels(bed, labels.column = 4, side = "inside",
col = as.numeric(factor(bed[[1]])))
circos.genomicLabels(bed, labels.column = 4, side = "outside",
line_col = as.numeric(factor(bed[[1]])))
# }
Run the code above in your browser using DataLab