Q: How can I change the location of a single node in a DiagrammeR flow diagram, using the native syntax? Even a hack is fine.
Unexpectedly, the rendering of the second block of code below came out the same as the first. I thought maybe that was because the x and y arguments only worked with particular layout arguments to render_graph(). But the rendering didn't change even after I use render_graph(g,layout="manual").
library(DiagrammeR)
g <- create_graph(attr_theme="tb")
g <- add_node(g)
g <- add_node(g)
g <- add_node(g)
render_graph(g)
library(DiagrammeR)
g <- create_graph(attr_theme="tb")
g <- add_node(g)
g <- add_node(g)
g <- add_node(g, node_aes = node_aes(x = 10, y = 10))
render_graph(g)
# Same :(