楼主: kaifengedu
2279 4

[问答] 开始看Graphical Models with R这本书,有问题请教? [推广有奖]

  • 0关注
  • 18粉丝

已卖:641份资源

学科带头人

4%

还不是VIP/贵宾

-

威望
0
论坛币
1671 个
通用积分
475.1680
学术水平
85 点
热心指数
128 点
信用等级
60 点
经验
32847 点
帖子
913
精华
0
在线时间
1638 小时
注册时间
2010-2-2
最后登录
2025-12-27

楼主
kaifengedu 发表于 2012-9-17 22:44:47 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
1.2.1节有如下程序,
#1.2.1 Undirected Graphs
library(gRbase)
#下面四句是等价的
ug0 <- ug(~a:b, ~b:c:d, ~e)
ug0 <- ug(~a:b+b:c:d+e)
ug0 <- ug(~a*b+b*c*d+e)
ug0 <- ug(c("a","b"),c("b","c","d"),"e")
ug0

紧接着有
library(Rgraphviz)
plot(ug0)

为什么我的运行了plot(ug0)画不出来图,并有以下错误
Error: Layout type: "dot" not recognized. Use one of:
Warning messages:
1: In plot.xy(xy.coords(x, y), type = type, ...) :  "len" is not a graphical parameter
2: In plot.xy(xy.coords(x, y), type = type, ...) :  "edgemode" is not a graphical parameter
3: In plot.xy(xy.coords(x, y), type = type, ...) :  "len" is not a graphical parameter
4: In plot.xy(xy.coords(x, y), type = type, ...) :  "edgemode" is not a graphical parameter
5: In plot.xy(xy.coords(x, y), type = type, ...) :  "len" is not a graphical parameter
6: In plot.xy(xy.coords(x, y), type = type, ...) :  "edgemode" is not a graphical parameter
7: In plot.xy(xy.coords(x, y), type = type, ...) :  "len" is not a graphical parameter
8: In plot.xy(xy.coords(x, y), type = type, ...) :  "edgemode" is not a graphical parameter
There were 16 warnings (use warnings() to see them)



所有的运行是
> library(gRbase)
> ug0 <- ug(~a:b, ~b:c:d, ~e)
> ug0 <- ug(~a:b+b:c:d+e)
> ug0 <- ug(~a*b+b*c*d+e)
> ug0 <- ug(c("a","b"),c("b","c","d"),"e")
> ug0
A graphNEL graph with undirected edges
Number of Nodes = 5
Number of Edges = 4
> library(Rgraphviz)
> plot(ug0)
Layout type: "dot" not recognized. Use one of:
Warning messages:
1: In plot.xy(xy.coords(x, y), type = type, ...) : "len" is not a graphical parameter
2: In plot.xy(xy.coords(x, y), type = type, ...) : "edgemode" is not a graphical parameter
3: In plot.xy(xy.coords(x, y), type = type, ...) : "len" is not a graphical parameter
4: In plot.xy(xy.coords(x, y), type = type, ...) : "edgemode" is not a graphical parameter
5: In plot.xy(xy.coords(x, y), type = type, ...) : "len" is not a graphical parameter
6: In plot.xy(xy.coords(x, y), type = type, ...) : "edgemode" is not a graphical parameter
7: In plot.xy(xy.coords(x, y), type = type, ...) : "len" is not a graphical parameter
8: In plot.xy(xy.coords(x, y), type = type, ...) : "edgemode" is not a graphical parameter
There were 16 warnings (use warnings() to see them)


谢谢!




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:graphical GRAPHIC models model GRAPH recognized 程序

沙发
yangxy09 发表于 2012-9-17 22:47:02
DDDDDDD

藤椅
qoiqpwqr 发表于 2012-9-18 07:34:00
我的R运行起来没有错误,是不是Rgraphviz没装好,我记得当时我搞了半天这个包

板凳
mathstu 在职认证  发表于 2012-9-18 08:03:03
那个包很难搞!你看看是否是那个包安装的有问题!

报纸
kaifengedu 发表于 2012-9-18 09:04:58
谢谢楼上各位,包的安装没有问题。设置了环境变量,并读了该包的readme.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 05:09