circos.triangle: Draw triangles

View source: R/low_level.R

circos.triangleR Documentation

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)

jokergoo/circlize documentation built on Nov. 17, 2023, 11:32 a.m.