mvregmed.graph.attributes: Setup attributes of graph object for plotting

View source: R/mvregmed.graph.attributes.R

mvregmed.graph.attributesR 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


regmed documentation built on Jan. 22, 2023, 1:30 a.m.