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