Learn R Programming

circlizePlus (version 0.9.0)

ccPoints: Draw points in a region

Description

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

Usage

ccPoints(
  x = NULL,
  y = NULL,
  pch = par("pch"),
  col = par("col"),
  cex = par("cex"),
  bg = par("bg")
)

Value

Object ccCellGeom

Arguments

x

Data points on x-axis, measured in "current" data coordinate

y

Data points on y-axis, measured in "current" data coordinate

pch

Point type

col

Point color

cex

Point size

bg

backgrond of points

Examples

Run this code
library(circlizePlus)
cc <- ccPlot(sectors = letters[1:8], xlim = c(0, 1))
track1 <- ccTrack(ylim = c(0, 1), panel.fun = function(x, y) {
  circos.points(runif(10), runif(10))
})
cells <- ccCell(sector.index = "a") + ccPoints(
  x = runif(10), y = runif(10),
   pch = 16, col = "red"
)
track1 <- track1 + cells
cc + track1

Run the code above in your browser using DataLab