mvregmed.graph.attributes {regmed}R Documentation

Setup attributes of graph object for plotting

Description

Setup attributes of graph object for plotting directed acyclic graph with graph attributes

Usage

mvregmed.graph.attributes(fit.edges, x.color = "palegreen",
y.color = "palevioletred", med.color = "skyblue", v.size = 30)

Arguments

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

Details

User can use this as template for taking advantage of more igraph attributes.

Value

List with items 1) output from graph_from_edgelist (see igraph); 2) vertex names; 3)vertex size; 4) vertex colors

Author(s)

Daniel Schaid and Jason Sinnwell

References

Schaid DS, Dikilitas O, Sinnwell JP, Kullo I (2022). Penalized mediation models for multivariate data. Genet Epidemiol 46:32-50.

See Also

mvregmed.edges graph_from_edgelist


[Package regmed version 2.1.0 Index]