Quesntion 3: How family influences students’ alcohol consumption
wcolor <- c("#fed976","#feb24c","#fd8d3c","#f03b20","#bd0026")
W1 <-waffle(AD,rows=10, size=1,
title = "Workday alcohol consumption \namong students whose \nparents live apart",
colors=wcolor,
xlab="1 box = 1% of students whose parents live apart",
legend_pos= "top")
w2 <-waffle(AW,rows=10, size=1,
title = "Weekend alcohol consumption \namong students whose \nparents live apart",
colors=wcolor,xlab="1 box = 1% of students whose parents live apart",
legend_pos= "top")
w3<-waffle(TD,rows=10, size=1,
title = "Workday alcohol consumption \namong students whose \nparents live together",
colors=wcolor,xlab="1 box = 1% of students whose parents live together",
legend_pos= "top")
w4<-waffle(TW,rows=10, size=1,
title = "Weekend alcohol consumption \namong students whose \nparents live together",
colors=wcolor,xlab="1 box = 1% of students whose parents live together",
legend_pos= "top")
grid.arrange(W1,w3,ncol=2)

grid.arrange(w2,w4,ncol=2)
