Displaying 2 results from an estimated 2 matches for "fam2".
Did you mean:
fam
2003 Dec 08
3
stripchart problem
...ta for a certain condition that
runs in families. Below is a simplified view of the dataset, i.e. in
this case there are four families, each line corresponding to one
individual with age at diagnosis and sex.
> famdata
family age sex
1 fam1 2.1 f
2 fam1 2.3 f
3 fam1 1.0 m
4 fam2 7.3 f
5 fam2 4.1 f
6 fam2 1.2 f
7 fam2 0.6 m
8 fam3 3.5 m
9 fam3 2.5 m
10 fam3 2.9 m
11 fam3 5.6 m
12 fam3 4.4 f
13 fam10 1.1 f
14 fam10 1.2 f
15 fam10 2.9 f
16 fam10 2.2 f
17 fam10 4.7 m
I can nicely plot the age distribution by families with...
2012 Oct 31
2
how can xyplot word when with for control flow
...ntrol flow doesn't work ####
for (i in 1:3){
plot3.data<-subset(plot.data,Fam==i)
heading=paste("Fam_",i)
xyplot(rank ~ ca, data=plot3.data, groups=Spacing,
type="o",main=heading)
}
############ data format ######
data format of plot.data shows as folow:
Fam Fam2 Spacing ca rank 1 Fam_70001 S2 1 14 1 Fam_70001 S2 2 46 1
Fam_70001 S2 3 49 1 Fam_70001 S2 4 47 1 Fam_70001 S2 5 54 1 Fam_70001 S3
1 18 1 Fam_70001 S3 2 38 1 Fam_70001 S3 3 34 1 Fam_70001 S3 4 27 1
Fam_70001 S3 5 29 2 Fam_70002 S2 1 8 2 Fam_70002 S2 2 12 2 Fam_70002 S2 3
25 2 Fam_7000...