ccText | R Documentation |
Object ccCellGeom will call the function circlize::circos.text while drawing.
ccText(
x = NULL,
y = NULL,
labels,
direction = NULL,
facing = c("inside", "outside", "reverse.clockwise", "clockwise", "downward",
"bending", "bending.inside", "bending.outside"),
niceFacing = FALSE,
adj = par("adj"),
cex = 1,
col = par("col"),
font = par("font"),
...
)
x |
Data points on x-axis |
y |
Data points on y-axis |
labels |
Labels for each points |
direction |
deprecated, use |
facing |
Facing of text. Please refer to vignette for different settings |
niceFacing |
Should the facing of text be adjusted to fit human eyes? |
adj |
offset for text. By default the text position adjustment is either horizontal or vertical in the canvas coordinate system. The "circular horizontal" offset can be set as a value in degree unit and the value should be wrapped by |
cex |
Font size |
col |
Font color |
font |
Font style |
... |
Pass to |
Object ccCellGeom
library(circlizePlus)
n <- 1000
df <- data.frame(
sectors = sample(letters[1:8], n, replace = TRUE),
x = rnorm(n), y = runif(n)
)
par1 <- ccPar("track.height" = 0.1)
cc <- ccPlot(sectors = df$sectors, x = df$x) + par1
track1 <- ccTrack(
sectors = df$sectors, y = df$y,
panel.fun = function(x, y) {
circos.text(
CELL_META$xcenter,
CELL_META$cell.ylim[2] + mm_y(5),
CELL_META$sector.index
)
circos.axis(labels.cex = 0.6)
}
)
cell1 <- ccCell(sector.index = "a") + ccText(-1, 0.5, "text")
track1 <- track1 + cell1
cc <- cc + track1
cc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.