graph - How can I plot a tree on R with several parents for a node? -


i'm trying plot tree-like graph on r

this expect

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) 

but got


Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

image - python get coordinates (pixels) of corresponding points from clicks -