[英]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.下图大约有一半的区域是空白区域。
Set the margin parameter using:使用以下方法设置边距参数:
par(mar=c(0,0,0,0)+.1)
See more info on par
here: http://rfunction.com/archives/1302查看更多信息par
这里: http://rfunction.com/archives/1302
以防万一有人遇到类似问题,您可以通过在 plot 中添加边距来更改边距: plot(g, layout = layout_nicely(g),... margin=0)
在此处查看更多详细信息: https://igraph。 org/r/doc/plot.common.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.