ccRaster | R Documentation |
Object ccCellGeom will call the function circlize::circos.raster while drawing.
ccRaster(
image,
x,
y,
width,
height,
facing = c("inside", "outside", "reverse.clockwise", "clockwise", "downward",
"bending.inside", "bending.outside"),
niceFacing = FALSE,
scaling = 1
)
image |
A |
x |
Position of the center of the raster image, measued in the data coordinate in the cell. |
y |
Position of the center of the raster image, measued in the data coordinate in the cell. |
width |
Width of the raster image. When |
height |
Height of the raster image. Same format as |
facing |
Facing of the raster image. |
niceFacing |
Facing of text. Please refer to vignette for different settings. |
scaling |
Scaling factor to resize the raster image. |
Object ccCellGeom
library(circlizePlus)
library(png)
image <- system.file("extdata", "Rlogo.png", package = "circlize")
image <- as.raster(readPNG(image))
library(circlizePlus)
cc <- ccPlot(sectors = letters[1:4], xlim = c(0, 10))
track <- ccTrack(ylim = c(0, 1))
cell <- ccCell(sector.index = "a") + ccRaster(image = image, x = 5, y = 0.5,
width = "2cm", height = "2cm", facing = "inside", niceFacing = TRUE)
track <- track + cell
cc + track
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.