Description Usage Arguments Details Examples
Highlight sectors and tracks
1 2 3 4 |
sector.index |
A vector of sector index |
track.index |
A vector of track index that you want to highlight |
col |
Color for highlighting. Note the color should be semi-transparent. |
border |
Border of the highlighted region |
lwd |
Width of borders |
lty |
Style of borders |
padding |
Padding for the highlighted region. It should contain four values representing ratios of the width or height of the highlighted region |
text |
text added in the highlight region, only support plotting one string at a time |
text.vjust |
adjustment on 'vertical' (radical) direction. Besides to set it as numeric values, the value can also be a string contain absoute unit, e.g. "2.1mm", "-1 inche", but only "mm", "cm", "inches"/"inche" are allowed. |
text.col |
color for the text |
... |
pass to |
You can use circos.info
to find out index for all sectors and all tracks.
The function calls draw.sector
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | factors = letters[1:8]
circos.initialize(factors, xlim = c(0, 1))
for(i in 1:4) {
circos.trackPlotRegion(ylim = c(0, 1))
}
circos.info(plot = TRUE)
highlight.sector(c("a", "h"), track.index = 1)
highlight.sector("c", col = "#00FF0040")
highlight.sector("d", col = NA, border = "red", lwd = 2)
highlight.sector("e", col = "#0000FF40", track.index = c(2, 3))
highlight.sector(c("f", "g"), col = NA, border = "green",
lwd = 2, track.index = c(2, 3))
highlight.sector(factors, col = "#FFFF0040", track.index = 4)
circos.clear()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.