powered by
Evaluate an R expression within the environment of the elements of a sem_graph object, and return the modified sem_graph.
sem_graph
edit_graph(x, expr, element = c("edges", "nodes"), ...)edit_nodes(x, expr, ...)edit_edges(x, expr, ...)
edit_nodes(x, expr, ...)
edit_edges(x, expr, ...)
An object of class sem_graph.
expression to evaluate.
Character. The element of the sem_graph to edit, defaults to c("edges", "nodes").
c("edges", "nodes")
Arguments passed on to within.
within
p <- prepare_graph(layout = get_layout("x", rows = 1)) p <- edit_graph(p, {colour = "blue"}, element = "nodes") plot(p)
Run the code above in your browser using DataLab