gm.plot {gmvalid}R Documentation

Plot graphical models

Description

Plots given graphical models and writes provided measures next to the edges.

Usage

gm.plot(model, significant = TRUE, data.analysis = 0)

Arguments

model String vector with model formulas. See gm.modelsim.
significant If TRUE only significant edges in the selected models are plotted (in solid lines). If FALSE also not significant edges are plotted as dashed lines.
data.analysis Upper-tri matrix with the measure for the edge between variables i and j (i>j) at matrix position [i,j]. If the length of the model is bigger than 1, data.analysis has to be a list of matrices.

Details

The line width of the edges will depend on the size of the numbers in data.analysis.

Value

TRUE

Note

Every use of the plot function opens a new window.

Author(s)

Fabian Sobotka, Marc Suling, Ronja Foraita
Bremen Institute for Prevention Research and Social Medicine
(BIPS) http://www.bips.uni-bremen.de

See Also

gm.analysis

Examples

  gm.plot("ABC,CDE")

  gm.plot("VBA,EVC")
  
  gm.plot(c("ABC,CDE","AB,BC,CD,DE","ABC,DEF,GHI"))
  
  gm.plot("AB,AC",FALSE,matrix(0.5,nrow=3,ncol=3))

[Package gmvalid version 1.0 Index]