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

circos.triangle

Draw triangles


Description

Draw triangles

Usage

circos.triangle(x1, y1, x2, y2, x3, y3, ...)

Arguments

x1

x-coordinates for the first point.

y1

y-coordinates for the first point.

x2

x-coordinates for the second point.

y2

y-coordinates for the second point.

x3

x-coordinates for the third point.

y3

y-coordinates for the third point.

...

Pass to circos.polygon.

Examples

circos.initialize(c("a", "b", "c", "d"), xlim = c(0, 10))
circos.track(ylim = c(0, 10), panel.fun = function(x, y) {
    circos.triangle(c(2, 2), c(2, 8),
                    c(8, 8), c(2, 8),
                    c(5, 5), c(8, 2))
}, track.height = 0.5)

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.