[R] [sem package] path.diagram() ignores the edge.label argument ..?

Martin Batholdy batholdy at googlemail.com
Mon Mar 9 13:34:54 CET 2009


hi,


I plot path diagrams with the path.diagram() function of the sem  
package in combination with the graphviz application.

Now I want the graphviz code for a path-plot with the actual  
standardized coefficients on the arrows (not the names).
I tried to add edge.labels="values" as an argument to path.diagram()  
but it's just ignored.


can anyone help me on that?




p.s.;


here is the actual code;







cov <-  
c 
(1.670028 
,-1.197685 
,-2.931445,-1.197685,1.765646,3.883839,-2.931445,3.883839,12.050816)


cov.matrix <- matrix(cov, 3, 3, dimnames=list(c("y1","x1","x2"),  
c("y1","x1","x2")))


path.model <- specify.model()
   x1 -> y1,	x1-y1
   x2 <-> x1,	x2-x1
   x2 <-> x2,	x2-x2
   x1 <-> x1,	x1-x1
   y1 <-> y1,	y1-y1
  x2 -> y1,	x2-y1

  summary(sem(path.model, cov.matrix, N = 422))

  std.coef(sem(path.model, cov.matrix, N = 422))
  standardized.residuals(sem(path.model, cov.matrix, N = 422))

  path.diagram(sem(path.model, cov.matrix, N = 422), "test.dot",  
edge.labes="values", digits=2, ignore.double=FALSE)




More information about the R-help mailing list