Learn R Programming

jlsm (version 0.1.0)

Plotblsm: Two dimensional plot of the Bipartite Latent Space Model

Description

plot the latent space with two types of nodes and one type of relations

Usage

Plotblsm(
  Y.ia,
  model,
  labels = NULL,
  xlab = "",
  ylab = "",
  plotedges = TRUE,
  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.ia

N by M matrix containing the binary multivariate attributes

model

model output from BLSM

labels

vector of characters containing the item names

xlab

name of the x axis

ylab

name of the y axis

plotedges

TRUE or FALSE, whether the bipartite edges should be plotted

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 attributes 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)
a=blsm(Niter=3,Y.ia,D=2)
Plotblsm(Y.ia,  a)
# }

Run the code above in your browser using DataLab