gplot1: A wrapper for function gplot - Two-Dimensional Visualization...

gplot1R Documentation

A wrapper for function gplot - Two-Dimensional Visualization of Graphs

Description

The function calls function gplot from the library sna with different defaults. Use fun for plotting image graphs.

Usage

gplot1(
  M,
  diag = TRUE,
  displaylabels = TRUE,
  boxed.labels = FALSE,
  loop.cex = 4,
  edge.lwd = 1,
  edge.col = "default",
  rel.thresh = 0.05,
  ...
)

gplot2(
  M,
  uselen = TRUE,
  usecurve = TRUE,
  edge.len = 0.001,
  diag = TRUE,
  displaylabels = TRUE,
  boxed.labels = FALSE,
  loop.cex = 4,
  arrowhead.cex = 2.5,
  edge.lwd = 1,
  edge.col = "default",
  rel.thresh = 0.05,
  ...
)

Arguments

M

A matrix (array) of a graph or set thereof. This data may be valued.

diag

Boolean indicating whether or not the diagonal should be treated as valid data Set this TRUE if and only if the data can contain loops. diag is FALSE by default.

displaylabels

Boolean; should vertex labels be displayed.

boxed.labels

Boolean; place vertex labels within boxes.

loop.cex

An expansion factor for loops; may be given as a vector, if loops are to be of different sizes.

edge.lwd

Line width scale for edges; if set greater than 0, edge widths are scaled by edge.lwd*dat. May be given as a vector or adjacency matrix, if edges are to have different line widths.

edge.col

Color for edges; may be given as a vector or adjacency matrix, if edges are to be of different colors.

rel.thresh

Real number indicating the lower relative (compared to the highest value) threshold for tie values. Only ties of value thresh are displayed. By default, thresh = 0.

...

Additional arguments to plot or link{sna::gplot}:

mode: the vertex placement algorithm; this must correspond to a gplot.layout function from package sna.

uselen

Boolean; should we use edge.len to rescale edge lengths.

usecurve

Boolean; should we use edge.curve.

edge.len

If uselen == TRUE, curved edge lengths are scaled by edge.len.

arrowhead.cex

An expansion factor for edge arrowheads.

Value

Plots a graph.

Author(s)

Aleš Žiberna

See Also

link{sna::gplot}


blockmodeling documentation built on Aug. 23, 2023, 5:07 p.m.