简体   繁体   中英

R - qqplot - Error msg: Error in rank(x, ties.method = “min”, na.last = “keep”) : unimplemented type 'list' in 'greater'

I'm facing an error message when using "qqplot" of package "car".

Code:

a = c(24,35,67,45,43,37,86,87,53,33,67,98)
b = c(34,67,42,78,42,79,43,77,43,67,34,78)
lm(a~b)
qqplot(lm(a~b))

Error in rank(x, ties.method = "min", na.last = "keep") : unimplemented type 'list' in 'greater'

There is a similar question already, but with no helpful answer.

R data analysis - qqplot - Error msg: unimplemented type 'list' in 'greater'

Could someone help me?

So if you are looking for a function from car package, it is qqPlot and not qqplot .

Can you try qqPlot(lm(a~b)) . This will return the below plot.

Plot:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM