CID DISTRICT SCHOOL YRofSTUDY DATE.ENTRY SEX AGE EGGS.M EGGS.MII EGGS.H POBADN0130 PO Badongo 0 18.1.08 2 11 0 -1 73 POBADN0117 PO Badongo 0 18.1.08 1 10 0 -1 59 POBADN0160 PO Badongo 0 18.1.08 1 11 0 -1 56 POBADN0112 PO Badongo 0 18.1.08 2 10 0 -1 47 POBADN0053 PO Badongo 0 18.1.08 1 8 0 -1 42 POBADN0141 PO Badongo 0 18.1.08 2 11 0 -1 36 POBADN0056 PO Badongo 0 18.1.08 1 8 0 -1 26 POBADN0127 PO Badongo 0 18.1.08 1 10 0 -1 26 POBADN0136 PO Badongo 0 18.1.08 2 11 0 -1 24 POBADN0153 PO Badongo 0 18.1.08 1 11 0 -1 22 POBADN0092 PO Badongo 0 18.1.08 1 9 0 -1 21 POBADN0087 PO Badongo 0 18.1.08 1 9 0 -1 17 POBADN0145 PO Badongo 0 18.1.08 1 11 0 -1 16 POBADN0107 PO Badongo 0 18.1.08 2 10 0 -1 15 POBADN0118 PO Badongo 0 18.1.08 1 10 0 -1 14 POBADN0150 PO Badongo 0 18.1.08 1 11 0 -1 14 POBADN0079 PO Badongo 0 18.1.08 2 9 0 -1 12 POBADN0121 PO Badongo 0 18.1.08 1 10 0 -1 11 POBADN0158 PO Badongo 0 18.1.08 1 11 0 -1 10 POBADN0148 PO Badongo 0 18.1.08 1 11 0 -1 7 POBADN0155 PO Badongo 0 18.1.08 1 11 0 -1 6 POBADN0063 PO Badongo 0 18.1.08 1 8 0 -1 4 POBADN0144 PO Badongo 0 18.1.08 2 11 0 -1 2 POBADN0002 PO Badongo 0 18.1.08 2 7 0 -1 0 POBADN0003 PO Badongo 0 18.1.08 2 7 0 -1 0 I need to find out how can I on R, plot the mean egg of EGGS.H according to the district, or sex. Also how to compare the eggs of females on year of study x (in t.test) Thank you! -- View this message in context: http://r.789695.n4.nabble.com/More-complex-historgram-tp2197823p2197823.html Sent from the R help mailing list archive at Nabble.com.
Are you asking us to do your homework? This is not a homework list. For the t-test look in any introductory R manual. For the histograms, look in the lattice library. HTH Daniel -- View this message in context: http://r.789695.n4.nabble.com/More-complex-historgram-tp2197823p2216076.html Sent from the R help mailing list archive at Nabble.com.
On 05/14/2010 02:46 AM, Blue.Egg wrote:>... > I need to find out how can I on R, plot the mean egg of EGGS.H according to > the district, or sex. > > Also how to compare the eggs of females on year of study x (in t.test)Hi Blue.Egg, You can always try barNest: # first let's get more than one district bluegg.df$DISTRICT<-factor(sample(c("PO","PQ"),25,TRUE)) barNest(EGGS.H~DISTRICT+SEX,data=bluegg.df, ylab="Mean number of eggs", barlabels=list("Overall",c("District PO","District PQ"), c("Male","Female")),main="Blue.Egg\'s breakdown of eggs", col=list("lightgray",c("green","orange"),c("pink","lightblue"))) and if you want nested bars, add showall=TRUE. For the t-test: t.test(EGGS.H~SEX,bluegg.df) Jim