Re: [R] Rcmder Error

From: John Fox <jfox_at_mcmaster.ca>
Date: Wed, 26 Mar 2008 11:08:46 -0400

Dear Max,

So Rich's guess that you had a factor level with only one observation (and consequently an empty cell in the two-way table of means) proved correct. I'll modify the plotMeans() function so that it prints a more informative message under this circumstance.

Regards,
 John



John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox

> -----Original Message-----
> From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-
> project.org] On Behalf Of Max
> Sent: March-26-08 10:44 AM
> To: r-help_at_stat.math.ethz.ch
> Subject: Re: [R] Rcmder Error
>
> John and Rich,
>
> Thankyou for the suggestion of I've gone over my data and found that
> one of the text values had an extra space in it. Error fixed. It's good
> to know what the error means, now if I encounter it again I don't need
> to ask about it here.
>
> Thanks again!
>
> -Max
>
> It happens that John Fox formulated :
> > Dear Max,
> >
> > As Rich Heiberger has suggested, it's difficult to diagnose the error
> > without the data, and it's especially curious that this previously
> worked (I
> > assume from your message with the same data) and doesn't now.
> >
> > Regards,
> > John
> >
> > --------------------------------
> > John Fox, Professor
> > Department of Sociology
> > McMaster University
> > Hamilton, Ontario, Canada L8S 4M4
> > 905-525-9140x23604
> > http://socserv.mcmaster.ca/jfox
> >
> >
> >> -----Original Message-----
> >> From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-
> >> project.org] On Behalf Of Max
> >> Sent: March-25-08 5:56 PM
> >> To: r-help_at_stat.math.ethz.ch
> >> Subject: [R] Rcmder Error
> >>
> >> Hi Guys,
> >>
> >> I am trying to show a plot of means with two groups. i.e.
> >>
> >>> plotMeans(s$CON, s$GENERAL.STARTING.DEPT, s$Cat, error.bars="se")
> >>
> >> and I get the error in Rcmdr:
> >>
> >> ERROR: need finite 'ylim' values
> >>
> >> Pasting the code in R gets the following error:
> >>
> >> x) : no non-missing arguments to min; returning Inf
> >> Warning in max(x) : no non-missing arguments to max; returning -Inf
> >> Error in plot.window(...) : need finite 'ylim' values
> >>
> >> I'm not sure what's going on. I know in R 2.6 I ran the same code
> and
> >> had no problem. Any suggestions on what I can do to fix it?
> >>
> >> Thanks,
> >>
> >> -Max
> >>
> >> ______________________________________________
> >> R-help_at_r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide http://www.R-project.org/posting-
> >> guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
> >
> > ______________________________________________
> > R-help_at_r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 26 Mar 2008 - 15:11:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 26 Mar 2008 - 15:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive