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)))

FELLA documentation built on Nov. 8, 2020, 6:57 p.m.