2017-06-14 236 views

回答

0

編輯:我的錯誤。我沒有仔細閱讀,看到你在使用汽車包裝。在您的問題中添加示例代碼將在未來有用。

看起來像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))