1.
ggplot(data.combined[1:891,], aes(title[1:891], fill=as.factor(Survived[1:891])))+
geom_bar(width = .5) +
facet_wrap(~Pclass+Sex)
2.
ggplot(data.combined[1:891,], aes(dataframe$title[1:891], fill=as.factor(dataframe$Survived[1:891]))) +
geom_bar(width = .5) +
facet_wrap(~Pclass+Sex)
Why do I get different results? How is the $ used?