Re: [R] Plotting Lines Through multiple groups

2011-09-28 Thread clara_eco
Thank you Eik Vettorazzi-2 That was exactly what I wanted! Regards Clara -- View this message in context: http://r.789695.n4.nabble.com/Plotting-Lines-Through-multiple-groups-tp3850099p3853753.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Plotting Lines Through multiple groups

2011-09-28 Thread Eik Vettorazzi
Hi Clara, are there repeated measures of an animal on the same day? Otherwise I did not get the point of the level of aggregation. Using lattice you can do sth like xyplot(Cort~Day,groups=Animal,type=c("p","a"),data=df) but with your given data this just connects the raw points hth. Am 28.09.20

Re: [R] Plotting Lines Through multiple groups

2011-09-28 Thread Timothy Bates
if it was me, i'd do library("ggplot2") df <- read.table(pipe("pbpaste"), header=T, sep='\t') df$Animus=factor(df$Animal, labels=c("Tom", "Dick", "Harry")) qplot(Day, Cort, data = df, geom="line", colour=Animus) On Sep 28, 2011, at 8:03 AM, clara_eco wrote: > Hi I have data in the following forma

[R] Plotting Lines Through multiple groups

2011-09-28 Thread clara_eco
Hi I have data in the following format Cort Day Animal 230 1 273 1 240 2 271 2 342 2 303 2 244 2 200 3 241 3 282 3 344 3 etc. It is measured across time(day) however no every individual is measured th