plotLatentDigraph | R Documentation |
Given an adjacency matrix representing the directed edges in a latent factor graph, plots a representation of the graph. The latent nodes should come last in L and the vertex labels should only be given for the observed nodes.
plotLatentDigraph(L, observedNodes, latentNodes, main = "")
L |
Adjacency matrix for the directed part of the path diagram/mixed graph; an edge pointing from i to j is encoded as L[i,j]=1 and the lack of an edge between i and j is encoded as L[i,j]=0. There should be no directed self loops, i.e. no i such that L[i,i]=1. |
observedNodes |
a vector of positive integers representing the vertex numbers of the observed nodes. These will correspond, in order, to the first length(observedNodes) rows of L. |
latentNodes |
a vector of positive integers representing the vertex numbers of the latent nodes. These will correspond, in order, to the last length(latentNodes) rows of L. |
main |
the plot title. |
An object representing the LatentDigraph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.