igraph (version 0.6-1)

Pie charts as vertices: Using pie charts as vertices in graph plots

Description

More complex vertex images can be used to express addtional information about vertices. E.g. pie charts can be used as vertices, to denote vertex classes, fuzzy classification of vertices, etc.

Arguments

concept

Vertex shapes

Details

The vertex shape pie makes igraph draw a pie chart for every vertex. There are some extra graphical vertex parameters that specify how the pie charts will look like: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

See Also

igraph.plotting, plot.igraph

Examples

Run this code
g <- graph.ring(10)
values <- lapply(1:10, function(x) sample(1:10,3))
if (interactive()) {
  plot(g, vertex.shape="pie", vertex.pie=values,
       vertex.pie.color=list(heat.colors(5)),
       vertex.size=seq(10,30,length=10), vertex.label=NA)
}

Run the code above in your browser using DataCamp Workspace