graph - How can I plot a tree on R with several parents for a node? -
i'm trying plot tree-like graph on r
here goes code (i'm using library "data.tree"):
library(data.tree) <- node$new("a") b <- node$new("b") c <- node$new("c") d <- node$new("d") a$addchildnode(b) a$addchildnode(c) b$addchildnode(d) c$addchildnode(d) plot(a)
Comments
Post a Comment