View source: R/plot-plot_sem.R
edit_graph | R Documentation |
Evaluate an R expression within the environment of the elements
of a sem_graph
object, and return the modified sem_graph
.
edit_graph(x, expr, element = c("edges", "nodes"), ...)
edit_nodes(x, expr, ...)
edit_edges(x, expr, ...)
x |
An object of class |
expr |
expression to evaluate. |
element |
Character. The element of the |
... |
Arguments passed on to |
An object of class sem_graph
.
p <- prepare_graph(layout = get_layout("x", rows = 1))
p <- edit_graph(p, {colour = "blue"}, element = "nodes")
plot(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.