Description Usage Arguments See Also Examples
This function is equivalent to facet_wrap
but only
facets nodes. Edges are drawn if their terminal nodes are both present in a
panel.
1 2 3 |
facets |
Either a formula or character vector. Use either a
one sided formula, |
nrow |
Number of rows and columns. |
ncol |
Number of rows and columns. |
scales |
should Scales be fixed ( |
shrink |
If |
labeller |
A function that takes one data frame of labels and
returns a list or data frame of character vectors. Each input
column corresponds to one factor. Thus there will be more than
one with formulae of the type |
as.table |
If |
switch |
By default, the labels are displayed on the top and
right of the plot. If |
drop |
If |
dir |
Direction: either "h" for horizontal, the default, or "v", for vertical. |
strip.position |
By default, the labels are displayed on the top of
the plot. Using |
Other ggraph-facets: facet_edges
,
facet_graph
1 2 3 4 5 6 7 8 | library(igraph)
gr <- graph_from_data_frame(highschool)
V(gr)$popularity <- as.character(cut(degree(gr, mode = 'in'), breaks = 3,
labels = c('low', 'medium', 'high')))
ggraph(gr) +
geom_edge_link() +
geom_node_point() +
facet_nodes(~popularity)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.