2017-06-14 235 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))