0
我在R中使用汽車包生成qqplot,但無法調整x和y比例。該圖是這樣的:在R中使用汽車包的qqplot的x和y限制
我需要炸燬的X和Y軸來看看他們是置信區間的距離。有沒有辦法解決這個問題? 汽車包中的qqPlot函數沒有參數XLIM和ylim Arguments of qqPlot in car package
我在R中使用汽車包生成qqplot,但無法調整x和y比例。該圖是這樣的:在R中使用汽車包的qqplot的x和y限制
我需要炸燬的X和Y軸來看看他們是置信區間的距離。有沒有辦法解決這個問題? 汽車包中的qqPlot函數沒有參數XLIM和ylim Arguments of qqPlot in car package
編輯:我的錯誤。我沒有仔細閱讀,看到你在使用汽車包裝。在您的問題中添加示例代碼將在未來有用。
看起來像car :: qqPlot中的座標軸可能不可調。根據此回答中的建議(car package to qqplot in R - how to insert the scale of x and y axis),請嘗試使用基本功能(stats :: qqplot)。
嘗試在您的qqplot函數中調用xlim和ylim。
下面是使用從qqplot文檔樣本數據爲例:
## data
y <- rt(200, df = 5)
## plot will have x-axis from -4 to 6 and y-axis from -4 to 4
qqplot(y, rt(300, df = 5))
## plot will have x-axis from -4 to 2 and y-axis from -4 to 0
qqplot(y, rt(300, df = 5),
ylim = c(-4, 0),
xlim = c(-4, 2))
請包括一些示例代碼和數據 – lebelinoz