Learn R Programming

ldstatsHD (version 1.0.1)

plot.pcorSim: Partial correlation matrix simulator plot

Description

graphical representation of the non-zero partial correlation matrix structure

Usage

# S3 method for pcorSim
plot(x, vertex.size = 3, vertex.label = NA, hubsCol = TRUE, ...)

Arguments

x

object of class pcorSim.

vertex.size

plot.igraph parameter: vertex sizes.

vertex.label

plot.igraph parameter: vertex label.

hubsCol

if TRUE hub nodes are highlighted in a different color.

arguments passed to or from other methods to the low level.

See Also

pcorSimulator for partial correlation matrix generation. pcorSimulatorJoint for joint partial correlation matrix generation.

Examples

Run this code
# NOT RUN {
EX1 <- pcorSimulator(nobs = 50, nclusters = 3, nnodesxcluster = c(100,30,50), 
                     pattern="powerLaw", plus = 0)
plot(EX1)
                
EX2 <- pcorSimulator(nobs = 25, nclusters = 2, nnodesxcluster = c(60,40), 
                     pattern = "powerLaw", plus = 1)
plot(EX2)
 
# }

Run the code above in your browser using DataLab