[R] Problem with R.2.9.2 Plot functions

Duncan Murdoch murdoch at stats.uwo.ca
Mon Aug 31 21:19:12 CEST 2009


On 8/31/2009 2:58 PM, Steve_Friedman at nps.gov wrote:
> Hello,
> 
> Last week I installed ver 2.9.1 and it worked fine.  This morning I have
> been working on some simple schemes,
> 
> plot(PropHatchedNests$Phatched, PropHatchedNests$MEAN)
>  abline(lm(PropHatchedNests$Phatched, PropHatchedNests$MEAN))
> 
> This oddly produces a box and whiskers plot.


That's a sign that PropHatchedNests$Phatched is not a numeric vector. 
I'm guessing it's a factor; try str(PropHatchedNests$Phatched) to be 
sure.  (You probably read it in from a file, and the file has a typo 
that made R treat it as a factor.)

Duncan Murdoch


> 
> I uninstalled 2.9.1 and installed 2.9.2 and ran the same commands.  Same
> output.
> 
> Is anyone else experiencing this conflict between bwplot and plot ?
> 
> I'm working on windows XP.
> 
> Thanks
> 
> Steve Friedman Ph. D.
> Spatial Statistical Analyst
> Everglades and Dry Tortugas National Park
> 950 N Krome Ave (3rd Floor)
> Homestead, Florida 33034
> 
> Steve_Friedman at nps.gov
> Office (305) 224 - 4282
> Fax     (305) 224 - 4147
> 
> ______________________________________________
> 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