[R] adding statistical output to a plot
Jim Lemon
jim at bitwrit.com.au
Sat May 29 13:56:24 CEST 2010
On 05/29/2010 07:39 PM, dunner wrote:
>
> I have written a function to emulate minitab's QQ plotting output (with SW
> test and AD test results on the graph):
> ...
> However, I get the following message when I try to apply it:
>
>> ab<-rnorm(1:100, 2)
>> aa<-log(ab)
> Warning message:
> In log(ab) : NaNs produced
Almost certainly negative numbers in ab - try:
ab<-abs(ab)
to flip these to positive or use a larger mean
>> ac<-(ab^2)
>> df<-data.frame(aa,ab,ac)
>
>> mtab.matrix(df)
> Error in sort(y) : argument "y" is missing, with no default
>
>> mtab.norm(aa)
> Error in sort(y) : argument "y" is missing, with no default
>
These errors look like they are happening in qqplot
Jim
More information about the R-help
mailing list