Object ccCellGeom will call the function circlize::circos.text while drawing.
Arguments
- x
Data points on x-axis
- y
Data points on y-axis
- labels
Labels for each points
- direction
deprecated, use
facing
instead.- 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
degree
.- cex
Font size
- col
Font color
- font
Font style
- ...
Pass to
text
Value
Object ccCellGeom
Examples
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
#> Note: 1 point is out of plotting region in sector 'a', track '1'.
#> Note: 1 point is out of plotting region in sector 'b', track '1'.
#> Note: 1 point is out of plotting region in sector 'c', track '1'.
#> Note: 1 point is out of plotting region in sector 'd', track '1'.
#> Note: 1 point is out of plotting region in sector 'e', track '1'.
#> Note: 1 point is out of plotting region in sector 'f', track '1'.
#> Note: 1 point is out of plotting region in sector 'g', track '1'.
#> Note: 1 point is out of plotting region in sector 'h', track '1'.