Benjamin Caldwell
2010-Aug-06 17:47 UTC
[R] qqline error: Error in sort.list(x, partial = unique(c(lo, hi))) : 'x' must be atomic for 'sort.list' Have you called 'sort' on a list?
Hi all, I'm modeling using lme in the nlme package. qqnorm makes plots just find, but when I try to add a line with qqline, I get the following error: "Error in sort.list(x, partial = unique(c(lo, hi))) : 'x' must be atomic for 'sort.list' Have you called 'sort' on a list?" For example> modelincr10<-lme(lruin~can.pos.num, data=rwushi30, random=(~1|site/transect/plot),na.action=na.omit)> summary(modelincr10) > qqnorm(modelincr10, main="qqnorm res10") > qqline(modelincr10)Error in sort.list(x, partial = unique(c(lo, hi))) : 'x' must be atomic for 'sort.list' Have you called 'sort' on a list? Any help much appreciated. Ben [[alternative HTML version deleted]]
David Winsemius
2010-Aug-06 18:24 UTC
[R] qqline error: Error in sort.list(x, partial = unique(c(lo, hi))) : 'x' must be atomic for 'sort.list' Have you called 'sort' on a list?
On Aug 6, 2010, at 1:47 PM, Benjamin Caldwell wrote:> Hi all, > > I'm modeling using lme in the nlme package. qqnorm makes plots just > find, > but when I try to add a line with qqline, I get the following error: > "Error in sort.list(x, partial = unique(c(lo, hi))) : > 'x' must be atomic for 'sort.list' > Have you called 'sort' on a list?" > > For example >> modelincr10<-lme(lruin~can.pos.num, data=rwushi30, random=(~1| > site/transect/plot),na.action=na.omit) >> summary(modelincr10) >> qqnorm(modelincr10, main="qqnorm res10") >> qqline(modelincr10) > Error in sort.list(x, partial = unique(c(lo, hi))) : > 'x' must be atomic for 'sort.list' > Have you called 'sort' on a list? >There is no lme methof for qqline. Have you read the help page for the qqnorm.lme function? ?qqnorm.lme I am guessing that you did not realize it was a completely different function that qqnorm.default. -- David Winsemius, MD West Hartford, CT