mytriangle {FELLA} | R Documentation

## Add triangular shape to igraph plot

### Description

This function enables the usage of triangles as shape in the function `plot.igraph`.

### Usage

    mytriangle(coords, v = NULL, params)

### Arguments

`coords, v, params` | clipping arguments, see `shapes`

### Value

Plot symbols

### Examples

    ## This function is internal
    library(igraph)

    add.vertex.shape(
    "triangle", clip = shapes("circle")$clip,
    plot = FELLA:::mytriangle)

    g <- barabasi.game(10)
    plot(
    g, vertex.shape = "triangle",
    vertex.color = rainbow(vcount(g)),
    vertex.size = seq(10, 20, length = vcount(g)))

[Package FELLA version 1.0.1 Index]