Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

circos.segments

Draw segments through pairwise of points


Description

Draw segments through pairwise of points

Usage

circos.segments(
    x0, y0, x1, y1,
    sector.index = get.current.sector.index(),
    track.index = get.current.track.index(),
    straight = FALSE,
    col = par("col"),
    lwd = par("lwd"),
    lty = par("lty"),
    ...)

Arguments

x0

x coordinates for starting points.

y0

y coordinates for ending points.

x1

x coordinates for starting points.

y1

y coordinates for ending points.

sector.index

Index for the sector.

track.index

Index for the track.

straight

Whether the segment is a straight line.

col

Color of the segments.

lwd

Line width of the segments.

lty

Line type of the segments.

...

Pass to lines.

Examples

circos.initialize(letters[1:8], xlim = c(0, 1))
circos.track(ylim = c(0, 1), track.height = 0.3, panel.fun = function(x, y) {
    x = seq(0.2, 0.8, by = 0.2)
    y = seq(0.2, 0.8, by = 0.2)

circos.segments(x, 0.1, x, 0.9)
    circos.segments(0.1, y, 0.9, y)
})
circos.clear()

circlize

Circular Visualization

v0.4.12
MIT + file LICENSE
Authors
Zuguang Gu
Initial release
2021-1-8

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.