
Hello everyone,
 
I am learning to use the Rgraphviz package to produce graphs. Here I encountered a problem. I tried to adjust the fontsize of the node label but didn't get what I expected. Below is my code:
 
library(graph)
library(Pgraphviz)
nodes<-c("s","p","q","r")edges<-list(s=list(edges=c("p","q")),p=list(edges=c("p","q")),q=list(edges=c("p","r")),r=list(edges=c("s")))g<-new("graphNEL",nodes=nodes,edgeL=edges,edgemode="directed")
glob<-list(node=list(width="3",height="1",shape="box",fontsize=1))plot(g,attrs=glob)
glob<-list(node=list(width="3",height="1",shape="box",fontsize=30))plot(g,attrs=glob)
 
I built a simple graph with 4 nodes and 6 edges. It seemed that no matter I specified the node attribute to be fontsize 1 or fontsize 30, the graphs looked exactly the same. I don't know what's wrong. Looking forward to your help.
 
 
Thanks,
 
Yi 
 
_________________________________________________________________
Windows Live Photo gallery 数码相机的超级伴侣，轻松管理和编辑照片，还能制作全景美图！
http://get.live.cn/product/photo.html
	[[alternative HTML version deleted]]

