Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在igraph中显示数据帧_R_Igraph - Fatal编程技术网

在igraph中显示数据帧

在igraph中显示数据帧,r,igraph,R,Igraph,我的数据帧被称为 p 等 我喜欢用IGRAPHE图显示受影响系统的边缘,边缘有文本显示受影响的系统和事件的数量 我这样做: g <- graph.data.frame(p) plot.igraph(g) g这起作用了: g <- graph.data.frame(p) plot(g, layout = layout.fruchterman.reingold, vertex.label = V(g)$name) g这起作用了: g <- graph.data.frame(

我的数据帧被称为

p

我喜欢用IGRAPHE图显示受影响系统的边缘,边缘有文本显示受影响的系统和事件的数量

我这样做:

g <- graph.data.frame(p)
plot.igraph(g)
g这起作用了:

g <- graph.data.frame(p)
plot(g,  layout = layout.fruchterman.reingold,  vertex.label = V(g)$name)
g这起作用了:

g <- graph.data.frame(p)
plot(g,  layout = layout.fruchterman.reingold,  vertex.label = V(g)$name)

g我会从这个资源开始,关注print.edge.attributes:@tcash21,我做了类似于g的事情,我得到了它,它的edge.labelI会从这个资源开始,关注print.edge.attributes:@tcash21,我做了类似于g的事情,我得到了它,它的edge.label