jam_mypie | R Documentation |
Vectorized mypie() function for igraph vertex pie polygons
jam_mypie(
x,
y,
values,
radius,
edges = 200,
col = NULL,
angle = 45,
density = NULL,
border = NULL,
frame.color = NULL,
frame.lwd = par("lwd"),
lty = NULL,
lwd = par("lwd"),
init.angle = 90,
inner_pie_border = getOption("inner_pie_border", TRUE),
inner_cex = 1.01,
xy_max = NULL,
overclose_polygons = FALSE,
...
)
x , y |
|
values |
|
radius |
|
edges |
|
col |
|
angle , density |
used to draw lines to fill each pie node, passed
to |
border |
|
frame.color |
|
lty |
|
init.angle |
|
inner_pie_border |
|
overclose_polygons |
|
... |
additional arguments are passed to |
This is a function called internally by shape.jampie.plot()
,
not intended for direct use.
See reorder_igraph_nodes()
for visual examples.
This function is a light rewrite of igraph:::mypie()
, except
that this function determines polygon coordinates without
drawing them, instead returns the polygon coordinates to
the calling function shape.jampie.plot()
which in turn
draws all polygons once using the vectorized approach
described for graphics::polygon()
.
See shape.jampie.plot()
for more detail.
To disable pie.border
set to NA
with vertex.pie.border=NA
or V(g)[[2]]$pie.border <- NA
.
To disable frame.color
set to NA
with vertex.frame.color=NA
or V(g)[2]$frame.color <- NA
.
data.frame
with columns suitable for use in polygon()
after each column is expanded to vector form. Columns x
and y
are stored AsIs()
in list
format, and should be combined
with one NA
value between each numeric
vector. The NA
values
cause polygon()
to draw a series of separate polygons in
one vectorized step, much faster than drawing a series of
polygons in an iterative loop.
Other jam igraph shapes:
shape.coloredrectangle.plot()
,
shape.ellipse.clip()
,
shape.ellipse.plot()
,
shape.jampie.plot()
# See reorder_igraph_nodes() for visual examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.