vector of animals
ah<- c("Dog","Cat","Horse","Monkey","Dog","Fish","Horse","Dog","Cat","Horse","Cat","Horse","Dog","Cat","Monkey","Horse","Dog","Cat","Horse","Dog")
h gives status of animals 1= healthy 0 = not healthy
h<-c(1,0,1,0,0,0,1,0,1,0,1,0,0,1,1,1,1,1,0,0)
histogram plot
data<- data.frame(animals=ah,healthy=h)
ggplot(data,aes(animals,fill=as.factor(h)))+geom_histogram(stat="count")
i want to label with percentage of healthy animal (eg:dog) on top of each bar and in each bar i want label eg: number dogs healthy and not healthy
i need to plot Some thing like this