[R] Rcmder Error

John Fox jfox at mcmaster.ca
Wed Mar 26 16:08:46 CET 2008


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.



More information about the R-help mailing list