legend

Asked by etheleon

Hi, I'm using R and am trying to insert a legend into my igraph plot and am in the progress.

I've managed to generate a legend but when i drew the legend ontop of the igraph plot, the two overlaps.

The problem can be remedied somewhat by changing the x y coords of the legend and increasing the width of my output pdf but will end up with unwanted white space on the left. Perhaps there is a simpler way to do this?

I cant seem to control the xy coord of the entire igraph plot at one go.

Question information

Language:
English Edit question
Status:
Answered
For:
igraph Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gábor Csárdi (gabor.csardi) said :
#1

You can use the rescale argument of plot.igraph(), set it to FALSE, and then the plot is not rescaled and you can control all coordinates. You might also need to set the asp argument to FALSE, if your aspect ratio is not 1:1.

Btw. I would appreciate if you didn't cross-post every question everywhere. Then I would not need to answer everything everywhere. Thanks.

Can you help with this problem?

Provide an answer of your own, or ask etheleon for more information if necessary.

To post a message you must log in.