Object ccCellGeom will call the function circlize::circos.raster while drawing.
Arguments
- ...
Arguments passed on to
circlize::circos.raster
image
A
raster
object, or an object that can be converted byas.raster
.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
facing
is one of "inside", "outside", "clockwise" and "reverse.clockwise", the image should have absolute size where the value ofwidth
should be specified like20mm
,1cm
or0.5inche
. Whenfacing
is one ofbending.inside
andbending.outside
, the value ofwidth
is measured in the data coordinate in the cell.height
Height of the raster image. Same format as
width
. If the value ofheight
is omit, default height is calculated by taking the aspect ratio of the original image. But whenfacing
is one ofbending.inside
andbending.outside
,height
is mandatory to set.facing
Facing of the raster image.
niceFacing
Facing of text. Please refer to vignette for different settings.
sector.index
Index for the sector.
track.index
Index for the track.
scaling
Scaling factor to resize the raster image.
Value
Object ccCellGeom
Examples
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",facing = "inside", niceFacing = TRUE)
track=track+cell
cc+track