当我在 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))
关于r - RStudio 中的corrplot 边距太小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42125407/