Description Usage Arguments Aesthetics Author(s) See Also Examples
This geom is equivalent in functionality to geom_circle
and allows for plotting of nodes as circles with a radius scaled by the
coordinate system. Beceause of the geoms reliance on the coordinate system
it will only produce true circles when combined with
coord_fixed
1 2 |
mapping |
Set of aesthetic mappings created by |
data |
A data frame. If specified, overrides the default data frame defined at the top level of the plot. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
show.legend |
logical. Should this layer be included in the legends?
|
... |
other arguments passed on to
|
geom_node_point understand the following aesthetics. Bold aesthetics are automatically set, but can be overridden.
x0
y0
r
alpha
colour
fill
shape
size
stroke
filter
Thomas Lin Pedersen
Other geom_node_*: geom_node_arc_bar
,
geom_node_point
,
geom_node_text
,
geom_node_tile
1 2 3 | require(igraph)
gr <- graph_from_data_frame(flare$edges, vertices = flare$vertices)
ggraph(gr, 'circlepack', weight = 'size') + geom_node_circle() + coord_fixed()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.