-
Notifications
You must be signed in to change notification settings - Fork 68
/
RUNME.r
13 lines (12 loc) · 886 Bytes
/
RUNME.r
1
2
3
4
5
6
7
8
9
10
11
12
13
santa <- data.frame(belief=c('no belief','no belief','no belief','no belief',
'belief','belief','belief','belief',
'belief','belief','no belief','no belief',
'belief','belief','no belief','no belief'),
sibling=c('older brother','older brother','older brother','older sister',
'no older sibling','no older sibling','no older sibling','older sister',
'older brother','older sister','older brother','older sister',
'no older sibling','older sister','older brother','no older sibling'))
totals = table(santa$belief,santa$sibling)
mosaicplot(totals,main="Whether Kids Believe in Santa",
xlab="Belief in Santa Claus",ylab="Older Sibling",
col=c(2,3,4))