Re: [R] producing a QQ plot.

2010-03-27 Thread David Winsemius
On Mar 27, 2010, at 6:45 AM, Joshua Wiley wrote: It is a bit of a side note really, but a convenient way to provide data (particularly when it is complex) is via dput(). Not only is this easier to read in, it preserves classes and other handy info. For instance, once I had played around to get

Re: [R] producing a QQ plot.

2010-03-27 Thread Joshua Wiley
It is a bit of a side note really, but a convenient way to provide data (particularly when it is complex) is via dput(). Not only is this easier to read in, it preserves classes and other handy info. For instance, once I had played around to get "Cook" and "Islands" into one column (since there wa

Re: [R] producing a QQ plot.

2010-03-27 Thread Philip Wong
Aha! I see now! thanks guys! really helpful! -- View this message in context: http://n4.nabble.com/producing-a-QQ-plot-tp1693228p1693259.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.et

Re: [R] producing a QQ plot.

2010-03-27 Thread Stefan Grosse
Am 27.03.2010 10:45, schrieb Philip Wong: > >> mah=mahalanobis(data,apply(data,2,mean),var(data)) >> > >> mah=mahalanobis(data,apply(data,2,mean),var(no_fisher)) >> > qqplot(qchisq(ppoints(data),ncol(data),data) > As Joshua already pointed out: you are trying mathematical functions

Re: [R] producing a QQ plot.

2010-03-27 Thread Philip Wong
Hello, this is the first 10 data of the population. country village group av_expenP2ary_edno_fisher B_Leth B_LutjanWt_Leth Wt_Lutjan Cook IslandsAitutakiD 5239.127472 0.7 666.9998558 3.286283997 1.971519001 520.6454552

Re: [R] producing a QQ plot.

2010-03-27 Thread Joshua Wiley
Dear Philip, It is difficult to tell what is wrong without a reproducible example. It would be very helpful if you would provide sample data. That said, the most obvious issue from what you have provided is that some of your data is character. mean() and var() will not work with character data.

[R] producing a QQ plot.

2010-03-27 Thread Philip Wong
Hello everyone I'm a beginner in Stats and R, I'm using R 2.10.1. I need to create a multivariate qq plot, there is 8 variable group with each has 55 number of input. An example of what I did so far, just to get my point out: > data=read.csv(file.choose(),header=T) > data country