@amodaks wrote:
hello friends, I want to add bar values on top of each stacked bar in the bar plot with geom_text() of titanic dataset…
My x variable is ‘Sex’ and have filled it with the variable ‘Survived’
here is my code:
ggplot(titanic) + aes(x= Sex, fill = Survived) + geom_bar()output:
Posts: 1
Participants: 1