gm.plot {gmvalid} | R Documentation |
Plots given graphical models and writes provided measures next to the edges.
gm.plot(model, significant = TRUE, data.analysis = 0)
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. |
The line width of the edges will depend on the size of the numbers in data.analysis
.
TRUE
Every use of the plot function opens a new window.
Fabian Sobotka, Marc Suling, Ronja Foraita
Bremen Institute for Prevention Research and Social Medicine
(BIPS) http://www.bips.uni-bremen.de
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))