elliot
elliot

Reputation: 1944

R plot margins way too large when plotting networks in igraph

I've searched SO and haven't found a solution that I can get to work. I don't have any replicable data, but I've got the graph below illustrating my issue: my plot is too small. Any ideas on what my issue might be? The picture below has about half of its area as white space.

enter image description here

Upvotes: 5

Views: 3170

Answers (2)

Nikolas Gasparis
Nikolas Gasparis

Reputation: 11

Just in case that someone has a similar problem, you can change the margins by adding margins in plot: plot(g, layout = layout_nicely(g),... margin=0) See more details here: https://igraph.org/r/doc/plot.common.html

Upvotes: 0

Mako212
Mako212

Reputation: 7292

Set the margin parameter using:

par(mar=c(0,0,0,0)+.1)

See more info on par here: http://rfunction.com/archives/1302

Upvotes: 9

Related Questions