edges: Extract edges from sem_graph

View source: R/plot-attributes.R

edgesR Documentation

Extract edges from sem_graph

Description

Provides access to the edges element of a sem_graph object. This can be used to return or assign to the edges element.

Usage

edges(x)

edges(x) <- value

Arguments

x

Object of class sem_graph.

value

A valid value for edges(x).

Value

data.frame

Examples

edg <- data.frame(from = "x", to = "y")
p <- prepare_graph(edges = edg, layout = get_layout("x", "y", rows = 1))
edges(p)

tidySEM documentation built on Oct. 25, 2023, 1:06 a.m.