gpt4 book ai didi

r - RStudio 中的corrplot 边距太小

转载 作者:行者123 更新时间:2023-12-04 14:27:45 33 4
gpt4 key购买 nike

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

plot area

最佳答案

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

的内部参数

这是我得到的一些边距:

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

margins

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

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

horiz

关于r - RStudio 中的corrplot 边距太小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42125407/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com