我正在尝试将两个图形绘制在一行中,并且我想增加它们之间的空间。我搜索了这个论坛和其他一些网站,但我发现的选项似乎都不起作用。更改mai、mar和oma值会移动所有内容,但空间保持不变。我怎样才能保持数字现在的样子(尺寸方面),但增加它们之间的差距?
这是我的代码:
```{r echo=FALSE, fig.width=6, fig.height=6}
g.erd <- erdos.renyi.game(100, 150, type="gnm")
par(mfrow = c(1, 2), mai = c(1, 0.1, 0.1, 0.1))
plot(g.erd, layout=layout.circle, vertex.label=NA)
```
```{r echo=FALSE, fig.width=3, fig.height=3.5}
hist(degree(g.erd), xlab="Degree", ylab="Frequency", main="")
par(mfrow = c(1, 1))
```
Run Code Online (Sandbox Code Playgroud)
这是我的情节现在的样子:https ://i.stack.imgur.com/V2Fc7.png