plot_egograms | R Documentation |
egor objects can be plotted as egographs or egograms. By default networks of the four first egos are plotted.
plot_egograms(
x,
ego_no = 1,
x_dim = 1,
y_dim = 1,
venn_var = NULL,
pie_var = NULL,
ascending_inwards = TRUE,
vertex_size_var = NULL,
vertex_color_var = NULL,
vertex_color_palette = "Heat Colors",
vertex_color_legend_label = vertex_color_var,
vertex_label_var = "name",
edge_width_var = NULL,
edge_color_var = NULL,
edge_color_palette = "Heat Colors",
highlight_box_col_var = NULL,
highlight_box_col_palette = "Heat Colors",
res_disp_vars = NULL,
vertex_zoom = 1,
edge_zoom = 2,
font_size = 1,
pie_colors = NULL,
venn_gradient_reverse = FALSE,
show_venn_labels = TRUE,
include_ego = FALSE,
...
)
plot_ego_graphs(
x,
ego_no = 1,
x_dim = 1,
y_dim = 1,
vertex_size_var = NULL,
vertex_color_var = NULL,
vertex_color_palette = "Heat Colors",
vertex_color_legend_label = vertex_color_var,
vertex_label_var = "name",
edge_width_var = NULL,
ego_alter_edge_width_var = if (!is.null(edge_width_var) & include_ego) edge_width_var,
edge_color_var = NULL,
ego_alter_edge_color_var = if (!is.null(edge_color_var) & include_ego) edge_color_var,
edge_color_palette = "Heat Colors",
highlight_box_col_var = NULL,
highlight_box_col_palette = "Heat Colors",
res_disp_vars = NULL,
vertex_zoom = 1,
edge_zoom = 3,
font_size = 1,
include_ego = FALSE,
...
)
plot_egor(
x,
ego_no = 1,
x_dim = 2,
y_dim = 2,
...,
type = c("egograph", "egogram")
)
## S3 method for class 'egor'
plot(x, ...)
x |
An egor object. |
ego_no |
Ego row number. |
x_dim |
Number of ego networks to plot horizontally. |
y_dim |
Number of ego networks to plot vertically |
venn_var |
Name (character) of alter column. |
pie_var |
Name (character) of alter column. |
ascending_inwards |
|
vertex_size_var |
Name ( |
vertex_color_var |
Name ( |
vertex_color_palette |
Name ( |
vertex_color_legend_label |
Character. |
vertex_label_var |
Name ( |
edge_width_var |
Name ( |
edge_color_var |
Name ( |
edge_color_palette |
Name ( |
highlight_box_col_var |
Name ( |
highlight_box_col_palette |
Name ( |
res_disp_vars |
Name ( |
vertex_zoom |
Numeric. |
edge_zoom |
Numeric. |
font_size |
Numeric. |
pie_colors |
|
venn_gradient_reverse |
|
show_venn_labels |
Logical. |
include_ego |
Logical. |
... |
Additional arguments forwarded to plot.igraph. |
ego_alter_edge_width_var |
Name ( |
ego_alter_edge_color_var |
Name ( |
type |
Character. Either "egograph" or "egogram". |
For type equals "egograph" ego networks are plotted with igraph
's
plotting engine. "egogram" uses a special layout that places the nodes
on a map of (1) concentric circles with (2) subsections, that can be mapped to
alter variables.
Available color palettes are:
Heat Colors
Yellow-Green
Red-Yellow
Blue-Red
Black-White
Greys
Rainbow
Topo Colors
plot_egograms()
: Plots an ego-socio-gram.
plot_ego_graphs()
: Plots an ego graph.
e <- make_egor(net.count = 5, max.alters = 12)
plot_egograms(x = e,
ego_no = 2,
venn_var = "sex",
pie_var = "country",
vertex_size_var = "age")
plot(e)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.