Learn R Programming

multivariance (version 2.4.1)

layout_on_circles: special igraph layout for the dependence structure visualization

Description

It places the variable nodes on an outer circle and the dependency nodes on an inner circle

Usage

layout_on_circles(g, n = sum(is.na(igraph::V(g)$level)))

Arguments

g

graph

n

number of vertices on outer circle

Details

This is the standard layout for the full dependence structure, since in this case there often too many nodes which make the other (usual) layout incomprehensible.

Examples

Run this code
# NOT RUN {
N = 200
y = coins(N,2)
x = cbind(y,y,y)

g = dependence.structure(x,structure.type = "clustered",verbose = FALSE)$graph
plot(g)
plot(g,layout = layout_on_circles(g))
# }

Run the code above in your browser using DataLab