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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -