Learn R Programming

ldstatsHD (version 1.0.1)

plot.pcorSimJoint: Joint partial correlation matrix simulator plot

Description

graphical representation of two non-zero partial correlation structures

Usage

# S3 method for pcorSimJoint
plot(x, minn = 0, col = c("blue","red","green"), vertex.size=3, 
      edgesThickness = FALSE, ...)

Arguments

x

object of class pcorSimJoint.

minn

used for visualization purposes in very dense networks. It only plots nodes that have degree larger than minn.

col

vector defining edge colors: common edges (first element), only non-zero coefficients for first population (second element) and only non-zero coefficients for second population (third element).

vertex.size

plot.igraph parameter: vertex sizes.

edgesThickness

if TRUE, an edge thickness is proportional to the magnitude of its underlying estimated partial correlation coefficient.

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

See Also

pcorSimulatorJoint for joint partial correlation matrix generation.

Examples

Run this code
# NOT RUN {
EX1 <- pcorSimulatorJoint(nobs = 50, nclusters = 2, nnodesxcluster = c(30, 40), 
                         pattern = "pow", diffType = "cluster", dataDepend = "ind", 
                         pdiff = 0.2, diagCCtype = "dicot", diagNZ.strength = .5)
plot(EX1, edgesThickness = TRUE)

EX2 <- pcorSimulatorJoint(nobs = 50, nclusters = 3, nnodesxcluster = c(30, 40,60), 
                          pattern = "pow", diffType = "cluster", dataDepend = "diag", 
                          pdiff = 0.4, diagCCtype = "beta")
plot(EX2)

 
# }

Run the code above in your browser using DataLab