330 Lecture4 2015
330 Lecture4 2015
330 Lecture4 2015
Trellis Graphics
26.07.2015
Housekeeping
I Contact details
Office auckland.ac.nz hours
Steffen Klaere 303.219 s.klaere 9:3010:30, Thu+Fri
Arden Miller 303.229C a.miller Wed 910, Thu 121
I Class representatives
Course aucklanduni.ac.nz
Jessica Courtney 330 jcou608
Monica Hill 330 mhil084
??? 762 ???
plot(y x|z w )
xyplot(y~x|gender*age)
18 20 22 24 18 20 22 24
M M M M
017 1834 3549 50+
20
18
16
14
12
10
F F F F
y
18
16
14
12
10
18 20 22 24 18 20 22 24
x
x categorical, y continuous: dotplot
dotplot(y~x|gender*age)
M M M M
017 1834 3549 50+
12
10
8
6
4
2
F F F F
y
bwplot(y~x|gender*age)
M M M M
017 1834 3549 50+
12
10
8
6
4
2
F F F F
y
10
8
6
2
A B A B A B A B
x categorical, y categorical: mosaicplot
mosaicplot(table(age=age,sex=gender,x=x,y=y),
col=c("red","blue"),main=NA)
a
M
b
age
x categorical, y categorical: mosaicplot
mosaicplot(table(age=age,sex=gender,x=x,y=y),
col=c("red","blue"),main=NA)
017 1834
A B A
a
F
b
sex
In summary
18 20 22 24 18 20 22 24
M M M M
017 1834 3549 50+
20
18
16
14
12
10
F F F F
y
017 1834 3549 50+
20
16
determine the layout of the 14
12
10
cells 18 20 22 24
x
18 20 22 24
a
the kind of graph to draw in
F
b
each cell
sex
a
M
b
age
What to look for
weight (kg)
BMI =
(height (m))2
Body fat vs. BMI conditioned on Gender and Sport
5 10 15 20 25 5 10 15 20 25
25
20
30
25
20
5 10 15 20 25 5 10 15 20 25 5 10 15 20 25
I Male athletes have lower percent body fat than females (well
known).
I Male BMI tends to be larger than female BMI.
I Largest range of BMI values for athletes (quite diverse
number of disciplines there).
I Apart from female athletics there doesnt seem to be any
relationship between percent body fat and BMI.
I Initial scatterplot indicated positive relationship between BMI
and percent body fat which goes away when looking at sports
separately.
Example: engines
15 18
4
3
2
Nitrogen oxide concentration
1
7.5 9 12
4
3
2
1
Equivalence ratio
NOx vs E given C
7.5
9
12
15
18
Nitrogen oxide concentration
Equivalence ratio
Conclusions: Ethanol data
amplitude
length
Yarn length vs. yarn cycles
med
low
load:med load:med load:med
amp:low amp:med amp:high
high
length
med
low
load:low load:low load:low
amp:low amp:med amp:high
high
med
low
cycles
Conclusions
I For longer lengths, the cycles to failure are higher. (less likely
to break)
I Most likely to break when load and amplitude are high and
length is low.
Summary