Learn R Programming

circlize (version 0.4.10)

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

...

Examples

Run this code
# NOT RUN {
circos.initialize(fa = 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)
# }

Run the code above in your browser using DataLab