View source: R/mvregmed.graph.attributes.R
mvregmed.graph.attributes | R Documentation |
Setup attributes of graph object for plotting directed acyclic graph with graph attributes
mvregmed.graph.attributes(fit.edges, x.color = "palegreen", y.color = "palevioletred", med.color = "skyblue", v.size = 30)
fit.edges |
A data.frame of edges with 1st column a vertex directed to the vertex in the 2nd column. This is all.edge from the list that is output from mvregmed.edges |
x.color |
Color of vertices for x variables |
y.color |
Color of vertices for y variables |
med.color |
Color of vertices for mediators |
v.size |
Size of vertices for plotting |
User can use this as template for taking advantage of more igraph attributes.
List with items 1) output from graph_from_edgelist (see igraph); 2) vertex names; 3)vertex size; 4) vertex colors
Daniel Schaid and Jason Sinnwell
Schaid DS, Dikilitas O, Sinnwell JP, Kullo I (2022). Penalized mediation models for multivariate data. Genet Epidemiol 46:32-50.
mvregmed.edges
graph_from_edgelist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.