resizing window and setting margins for minimum

前端 未结 1 1113
难免孤独
难免孤独 2021-01-14 00:51

I\'m trying to create a tree graph, and since the \"father\" has a lot of \"children\" I\'d like it to be a very wide graph. Therefore, I tried to resize the window with the

1条回答
  •  广开言路
    2021-01-14 01:16

    By default, igraph uses a square aspect ratio, regardless of the size of the device. You can disable this by setting the asp argument to 0.

    library(igraph)
    g <- barabasi.game(100)
    par(mar=c(0,0,0,0))
    plot(g, asp=0)
    

    0 讨论(0)
提交回复
热议问题