Re: [R] Need help with xyplot - thanks

2011-08-09 Thread aziz4
message >Date: Mon, 8 Aug 2011 12:58:32 -0700 >From: Dennis Murphy >Subject: Re: [R] Need help with xyplot >To: az...@illinois.edu >Cc: r-help@r-project.org > >Hi: > >Try this: > ># Obtained from 'dput(dd)' >dd <- structure(list(AgeRange = str

Re: [R] Need help with xyplot

2011-08-08 Thread Dennis Murphy
Hi: Try this: # Obtained from 'dput(dd)' dd <- structure(list(AgeRange = structure(c(1L, 1L, 2L, 2L, 3L, 3L), .Label = c("10-12", "15-18", "30-40"), class = "factor"), AgeOfPerson = c(11L, 12L, 13L, 14L, 33L, 36L), PersonNo = 1:6, Year0 = c(0L, 0L, 1L, 1L, 3L, 4L), Year1 = c(1L, 1L, 2L, 3L, 5L, 4

[R] Need help with xyplot

2011-08-03 Thread aziz4
Consider I have the following data: AgeRangeAgeOfPerson PersonNoFriendsAtYear0 FriendsAtYear1 FriendsAtYear2 FriendsAtYear3 FriendsAtYear4 FriendsAtYear5 10 - 12 11 1 0 1 2 2 3 3 10 - 12 12 2 0 1 2 2