[R] Graphing help revisited

From: William Pepe <williampepe_at_hotmail.com>
Date: Thu, 05 Jun 2008 13:19:20 -0400

Sorry, my last post came out unreadable. I'll try again. Here is the data. Think of them as transposed columns. A: 1,1,1,2,3,4,5,6,6, 7B: 5,5,6,7,7,7,8,9,10,11 Split the data into two groups, each of size 5, and make a scatterplot. Bill<-read.table('something here') attach(Bill)Bill.s<-split(Bill, rep(1:2, each=5))plot(A,B,col='black') Group 1:A:1,1,1,2,3B:5,5,6,7,7Group 2:A:4,5,6,6,7B:7,8,9,10,11 For each group, find the mean of B.... Group 1:mean=6. Group 2: mean=9. On the scatterplot of A vs. B: For group 1, need horizontal line at the mean of 6. It should only cover the points in group 1.For group 2, need horizontal line at the mean of 9. Again, should only cover the points in group 2. The endpoints of the different horizontal lines must connect.  

I rather do this where I can change the size of the group as well. Any help is greatly appreciated. Bill

Search that pays you back! Introducing Live Search cashback.


        [[alternative HTML version deleted]]

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 Thu 05 Jun 2008 - 19:14:21 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 Thu 05 Jun 2008 - 20:32:34 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