[R] Newbie on plotting

From: Joe Trubisz <jtrubisz_at_mac.com>
Date: Fri, 8 Feb 2008 16:00:36 -0500


Hi...

I am issuing a: plot(x,y), where x is a factor. i expect a box-and-whisker plot and I do get it. The data is 'bucketed' into 10 buckets on the x-axis. When I process some data, I get data in buckets 1,7,8,9 and 10. Problem is when I plot it, it shows only those buckets on the x-axis. if I subsequently do a points(4,3,pch-16) for example, it places the point not at x=4, but at x=9. It's as if R kind of forgot the scaling.

What am I doing wrong here? I really would like 0-10 to appear on the xaxis and I can't seem to get this to work.

Joe



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 Fri 08 Feb 2008 - 21:12:35 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 Mon 11 Feb 2008 - 16:30:13 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