Learn R Programming

circlizePlus (version 0.9.0)

ccRect: Draw rectangle in a region

Description

Object ccCellGeom will call the function circlize::circos.rect while drawing.

Usage

ccRect(xleft = NULL, ybottom = NULL, xright = NULL, ytop = NULL, rot = 0, ...)

Value

Object ccCellGeom

Arguments

xleft

x for the left bottom points

ybottom

y for the left bottom points

xright

x for the right top points

ytop

y for the right top points

rot

Rotation of the rectangles. The value is measured clockwise in degree. Rotation is relative to the center of the rectangles.

...

pass to polygon

Examples

Run this code
library(circlizePlus)
cc <- ccPlot(sectors = letters[1:8], xlim = c(0, 1))
track <- ccTrack(ylim = c(0, 1), track.height = 0.3)
cell <- ccCell(sector.index = "a") + ccRect(xleft = 0.7, ybottom = 0.1, xright = 0.8, ytop = 0.9)
track <- track + cell
cc + track

Run the code above in your browser using DataLab