0

I am trying to use igraph to plot pedogree pedigree. I would like to have the edges met together (right figure) instead of spaced apart (left figure) in the default setting.

I can't find the correct argument in igraph manual to set the edge positions. Anyone knows?

Here are the R scripts used to generate the left figure.

    library(igraph)
    ped <- data.frame(id=1:3, p1=c(0,0,1), p2=c(0,0,2), gen=c(0,0,1))
    rel <- matrix(c(1,2,3,3), ncol=2)
    ped.graph <- graph.data.frame(rel, directed=F, ped)
    pos <- matrix(c(1,2,1.5,2,2,1), ncol=2)
    plot(ped.graph, rescale=T, layout=pos, vertex.size=50)
ZF007
  • 3,708
  • 8
  • 29
  • 48
jnolen
  • 1
  • 1

0 Answers0