Learn R Programming

circlizePlus (version 0.9.0)

ccPolygon: Draw polygon

Description

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

Usage

ccPolygon(x = NULL, y = NULL, ...)

Value

Object ccCellGeom

Arguments

x

Data points on x-axis

y

Data points on y-axis

...

pass to polygon

Examples

Run this code
library(circlizePlus)
cc <- ccPlot(sectors = letters[1:8], xlim = c(0, 1))
track <- ccTrack(ylim = c(0, 10))
cell <- ccCell(sector.index = "a") + ccPolygon(x = c(0.5, 0.7, 1), y = c(2, 6, 8))
track <- track + cell
cc + track

Run the code above in your browser using DataLab