Note that there are some explanatory texts on larger screens.

plurals
  1. POFeed coordinates to tkplot() or use tkplot's arrows in plot.igraph()
    primarykey
    data
    text
    <p>Is there a way I can feed a matrix of coordinates to the tkplot function in igraph? I've tried setting the layout argument to my matrix of coordinates but it just produces a blank plot. </p> <p>I'm able to feed coordinates to plot.igraph() and produce a directed, weighted edge plot with the vertices in the places that I want them. BUT, the arrows are funky. The arrows are placed underneath the edges so that if the edge is wide enough (some of mine are), then the arrow is at least partially hidden. I've tried changing edge and arrow width but some of my edges are just weighted too much. The arrows produced in tkplot are closer to what I want.</p> <p>The first plot below corresponds to the undesired arrows made with plot.igraph. Second plot is for the desired arrows from tkplot. </p> <h3>Arrows I don't want:</h3> <p><img src="https://i.stack.imgur.com/91Ic1.png" alt="badarrows"></p> <h3>Arrows I do want:</h3> <p><img src="https://i.stack.imgur.com/SgJFv.png" alt="goodarrows"></p> <p>The reason I need to do one or the other, is because I'll need to make a few more of these graphs with the nodes in the exact same location, and don't want to have to keep using tkplot to hand-move the nodes around every time. I have quite a bit of them and it will also be impossible to get them in exactly the same position as before. </p> <p>Hopefully this is specific enough. This is my first time posting, so please let me know what other information I should include. I've tried giving tkplot coordinates on R 2.15 and on a machine running 2.11, as well as with igraph package 0.5.5 and igraph 0.6.5. </p> <p>Truly sorry to waste time if this is out there somewhere. I've spent a while looking as well as trying to put heads together with my grad PI to figure it out and we've been hitting dead ends for a few days now. Thank you for any feedback. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload