script.R
1
2
3
4
5
# generate `t_abs`, a contingency table of `Survived`
and `Class`
# generate `t_rel`, the table of the relative
frequencies
# create the barplot
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
R Console
1
>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX