Learn R Programming

jlsm (version 0.1.0)

Plotaplsm: Two dimensional plot of Person Attribute Latent Space Model

Description

plot the joint latent space with two types of nodes and two types of relations

Usage

Plotaplsm(
  Y.i,
  Y.ia,
  model,
  labels = NULL,
  plotedgesSocial = TRUE,
  plotedgesBipartite = FALSE,
  xlab = "",
  ylab = "",
  edgecolor = "black",
  colEll.i = rgb(0.6, 0.6, 0.6, alpha = 0.1),
  colEll.ia = rgb(1, 0.6, 0.6, alpha = 0.1),
  LEVEL = 0.8,
  pchplot = 20,
  pchEll = 19,
  pchPl = 19,
  cexPl = 1.1,
  arrowhead = FALSE,
  curve = 0,
  xlim = c(-2, 2),
  ylim = c(-2, 2),
  lwdLine = 0.001,
  ...
)

Arguments

Y.i

N by N matrix containing the binary social network

Y.ia

N by M matrix containing the binary mutlivariate attributes

model

model output from the APLSM

labels

vector of characters containing the attribute names

plotedgesSocial

TRUE or FALSE, whether the social network edges should be plotted

plotedgesBipartite

TRUE or FALSE, whether the bipartite edges should be plotted

xlab

name of the x axis

ylab

name of the y axis

edgecolor

color of the edge. Default edgecolor = "black"

colEll.i

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

colEll.ia

col for the ellipses of atributes. Default rgb(1, .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

xlim

range for x

ylim

range for y

lwdLine

lwd of edges. Default lwdLine = .3

...

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

Value

plot

Examples

Run this code
# NOT RUN {
attach(french)
b=aplsm(Niter=3,Y.i, Y.ia,D=2, type="DD")
Plotaplsm(Y.i, Y.ia, b)
# }

Run the code above in your browser using DataLab