File: vertex.shape.pie.Rd

package info (click to toggle)
r-cran-igraph 1.0.1-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,232 kB
  • sloc: ansic: 173,538; cpp: 19,365; fortran: 4,550; yacc: 1,164; tcl: 931; lex: 484; makefile: 149; sh: 9
file content (40 lines) | stat: -rw-r--r-- 1,691 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
\name{Pie charts as vertices}
\alias{vertex.shape.pie}
\concept{Vertex shapes}
\title{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.
}
\details{
  The vertex shape \sQuote{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:
  \describe{
    \item{pie}{Numeric vector, gives the sizes of the pie slices.}
    \item{pie.color}{A list of color vectors to use for the pies. If it
      is a list of a single vector, then this is used for all pies. It
      the color vector is shorter than the number of areas in a pie,
      then it is recycled.}
    \item{pie.border}{The color of the border line of the pie charts, in
      the same format as \code{pie.color}.}
    \item{pie.angle}{The slope of shading lines, given as an angle in
      degrees (counter-clockwise).}
    \item{pie.density}{The density of the shading lines, in lines per
      inch. Non-positive values inhibit the drawing of shading lines.}
    \item{pie.lty}{The line type of the border of the slices.}
  }
}
\author{ Gabor Csardi \email{csardi.gabor@gmail.com} }
\seealso{ \code{\link{igraph.plotting}}, \code{\link{plot.igraph}} }
\examples{
g <- make_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)
}
}
\keyword{graphs}