mgp: Modified graph plotting for network models.

Description Usage Arguments Details Author(s) Examples

View source: R/mgp.R

Description

High level access to the gplot function in the sna package.

Usage

1
2
3
4
5
6
7
8
9
mgp(
  net = "species network",
  com = "community matrix",
  my.coord = "",
  loc = TRUE,
  v.scale = 3,
  v.min = 0.1,
  displaylabels = FALSE
)

Arguments

net

A network.

com

The community matrix used to generate the network with species in the same order as the network.

my.coord

A set of point coordinates to coordinates the nodes in the network.

loc

Logical: should the location (i.e. coordinates) of the plotted nodes be returned?

v.scale

Value to scale the node (i.e. vertex) size.

v.min

Minumum size for a node (i.e. vertex).

Details

This is a high level function for plotting networks using the sna package specifically tailored for community data based network models.

Author(s)

Matthew K. Lau

Examples

1
2
3
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

ECGen/ComGenR documentation built on July 23, 2021, 11:44 p.m.