t <- as.data.frame(Titanic)
library("ggplot2")
qplot(data=t,weight=Freq,x=Class)
library("ggplot2")
qplot(data=t,weight=Freq,x=Class,col=Survived)
library("ggplot2")
qplot(data=t,weight=Freq,x=Class,fill=Survived)
library("ggplot2")
qplot(data=t,weight=Freq,x=Sex,fill=Survived)+facet_grid(Age~Class)
library("ggplot2")
qplot(data=t,weight=Freq,x=Sex,fill=Survived)+facet_grid(Age~Class,scale="free_y")