mytriangle: Add triangular shape to igraph plot

Description Usage Arguments Value Examples

View source: R/plotGraph.R

Description

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

Usage

1
mytriangle(coords, v = NULL, params)

Arguments

coords, v, params

clipping arguments, see shapes

Value

Plot symbols

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)))

b2slab/FELLA documentation built on March 3, 2021, 2:22 p.m.