Hey my dear friends 
hope all of you are ok
i'm trying to do some exercise on titanic dataset. i graphed survived by gender of passengers,filled by survived or not. And drilled down / faceted by passenger ticket class to check relationship between these three categorical variables.
what i need is to put on each column two percentages : within class 1 , Percentage of males survived from total males is .....% and percentage of survived from total class 1 is ....%
is it doable my friends ???
ggplot(titanic[!is.na(titanic$survived),],aes(x=sex, fill=survived))+geom_bar()+theme_bw()+facet_wrap(~pclass)+labs(y="Passengers' count",title="Titanic Survival Rates by class and Gender")