tkplot here でプロットされたネットワーク グラフの座標を取得する際に、過去にいくつかの助けがありました。今、私は再び困惑しています。
これは、新しいセッションからの出力です。
> g <- graph.data.frame(edges, directed=T, vertices=vert)
> summary(g)
Vertices: 436
Edges: 1856
Directed: TRUE
No graph attributes.
Vertex attributes: name.
No edge attributes.
> tkplot(g, vertex.label=vert$label)
Loading required package: tcltk
Loading Tcl/Tk interface ... done
[1] 1
しかし、これを試してみると、エラーが発生します:
> lay <- tkplot.getcoords(1)
Error in eval(expr, envir, enclos) : object 'tkp.1' not found
これは、トピックに関する知識が不足しているためだと確信していますが、何が欠けているのでしょうか?
前もって感謝します