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,
  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,
  venn_colors = NULL,
  venn_gradient_reverse = FALSE,
  show_venn_labels = TRUE,
  ...
)

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 egor
plot(x, ...)

Arguments

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.

vertex_size_var

Name (character) of alter column.

vertex_color_var

Name (character) of alter column.

vertex_color_palette

Name (character) of color palette, see details for available color palettes.

vertex_color_legend_label

Character.

vertex_label_var

Name (character) of alter column. Set this to NULL to suppress labels.

edge_width_var

Name (character) of aatie column.

edge_color_var

Name (character) of aatie column.

edge_color_palette

Name (character) of color palette, see details for available color palettes.

highlight_box_col_var

Name (character) of ego column.

highlight_box_col_palette

Name (character) of color palette, see details for available color palettes.

res_disp_vars

Name (character) of ego column.

vertex_zoom

Numeric.

edge_zoom

Numeric.

font_size

Numeric.

venn_colors

Character vector of colors to be used for coloring the subsections of the circle.

venn_gradient_reverse

Logical, set to TRUE in order to have the color intensity of venns increase going from the inner circles to the outer circles.

show_venn_labels

Logical.

...

Additional arguments forwared to plot.igraph.

ego_alter_edge_width_var

Name (character) of alter column.

ego_alter_edge_color_var

Name (character) of alter column.

include_ego

Logical.

type

Character. Either "egograph" or "egogram".

Details

For type eqals "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

Functions

  • plot_egograms: Plots an ego-socio-gram.

  • plot_ego_graphs: Plots an ego graph.

Examples

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)