Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ボックスと円の2種類のノードを持つグラフ(ツリー)をレイアウトしたいと思います。
これはigraphで可能ですか?最小限の例はどのようになりますか?
library(igraph) g <- graph.empty() g <- add.vertices(g, 4, label=c('a', 'b', 'c', 'd'), shape=c('rectangle', 'rectangle', 'circle', 'circle')) g <- add.edges(g, c(1, 2, 2, 3)) plot(g)