plotY: Plot the adjacency matrix of the network

Description Usage Arguments Examples

Description

Function to plot the adjacency matrix of the network.

Usage

1
2
3
4
5
plotY(Y, Ndata = NULL, EZ = NULL, VZ = NULL, dimZ = c(1, 2),
  labels = NULL, colPl = 1, colEll = rgb(0.6, 0.6, 0.6, alpha = 0.1),
  LEVEL = 0.95, pchplot = 20, pchEll = 19, pchPl = 19,
  cexPl = 1.1, arrowhead = FALSE, curve = NULL, lwdLine = 0.3,
  xlim = NULL, ylim = NULL, verbose = FALSE, ...)

Arguments

Y

list, or matrix containing a (N x N) binary adjacency matrix for each network view.

Ndata

number of network views

EZ

posterior mean latent positions

VZ

posterior variance latent positions, if specified draw ellipse

dimZ

dimensions of Z to be plotted, default dimZ = c(1, 2)

labels

text to be added in the plot representing the labels of each node. Default labels = NULL, no labels are shown

colPl

col for the points representing the nodes. Default colPl = NULL

colEll

col for the ellipses. Default rgb(.6, .6 ,.6 , alpha=.1)

LEVEL

levels of confidence bounds shown when plotting the ellipses. Default LEVEL = .95

pchplot

Default pchplot = 20

pchEll

pch for the ellipses. Default pchEll = 19

pchPl

pch for the points representing the nodes. Default pchPl = 19

cexPl

cex for the points representing the nodes. Default cexPl = 1.1

arrowhead

logical, if the arrowed are to be plotted. Default arrowhead = FALSE

curve

curvature of edges. Default curve = 0

lwdLine

lwd of edges. Default lwdLine = .3

xlim

range for x

ylim

range for y

verbose

if verbose = TRUE save the nodal positions

...

Arguments to be passed to methods, such as graphical parameters (see par).

Examples

1
2
3
4
5
6
7
N <- 20
Y <- network(N, directed = FALSE)[,]
plotY(Y)
# Store the positions of nodes used to plot Y, in order to redraw the plot using 
# the same positions
z <- plotY(Y, verbose = TRUE)
plotY(Y, EZ = z)

Example output

Loading required package: MASS
Loading required package: ergm
Loading required package: network
network: Classes for Relational Data
Version 1.16.1 created on 2020-10-06.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
                    Mark S. Handcock, University of California -- Los Angeles
                    David R. Hunter, Penn State University
                    Martina Morris, University of Washington
                    Skye Bender-deMoll, University of Washington
 For citation information, type citation("network").
 Type help("network-package") to get started.


ergm: version 3.11.0, created on 2020-10-14
Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                    David R. Hunter, Penn State University
                    Carter T. Butts, University of California -- Irvine
                    Steven M. Goodreau, University of Washington
                    Pavel N. Krivitsky, UNSW Sydney
                    Martina Morris, University of Washington
                    with contributions from
                    Li Wang
                    Kirk Li, University of Washington
                    Skye Bender-deMoll, University of Washington
                    Chad Klumb
                    Michał Bojanowski, Kozminski University
                    Ben Bolker
Based on "statnet" project software (statnet.org).
For license and citation information see statnet.org/attribution
or type citation("ergm").

NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
constraint which distorted the sampled distribution somewhat. In
addition, Sampson's Monks datasets had mislabeled vertices. See the
NEWS and the documentation for more details.

NOTE: Some common term arguments pertaining to vertex attribute and
level selection have changed in 3.10.0. See terms help for more
details. Useoptions(ergm.term=list(version="3.9.4"))to use old
behavior.

lvm4net documentation built on June 13, 2019, 5:03 p.m.