RStudio 中的corrplot 边距太小

corrplot margins in RStudio are too small

当我在 R-Studio 中制作图形时,边距太小以至于它会切断绘图区域中的图形。下面的输出遵循 this tutorial,它使用 corrplot 库来 运行 Pearson 卡方残差。无论我如何调整我的绘图区域或缩放或导出,底部仍然被切断。我该如何调整?

我的图像显示得很好。也许您可以尝试使用边距 - mar 参数也是 corrplot()

的内部参数

这是我得到的一些边距:

corrplot(chisq$residuals, is.cor=FALSE, mar=c(5,2,2,1))

您也可以尝试转置矩阵,使其水平扩展,但不确定是否符合您的需要:

corrplot(t(chisq$residuals), is.cor=FALSE, mar=c(5,2,2,1))