How can i plot binary tree with 13 nodes in R Studio

Viewed 4835

I am new in R , i plot graph like ring, star. There are special functions for them, but i dont have any idea how can i plot a binary tree with 13 nodes? I used graph.extended.chordal.ring() function but it didnt help. Is there any good tutorial for R studio and how can i plot a binary tree?

library(igraph)
G <-  graph.extended.chordal.ring(13, matrix(c(2,4,6), nr=1))
L <- layout.fruchterman.reingold(G)
2 Answers
Related