In a barplot that I’ve flipped the coordinates and stacked as a proportional bar I’d like to change the y scale (now in the x scale position) to not have non significant zeros:
My attempt:
ggplot(diamonds, aes(color, fill=cut)) +
geom_bar(position='fill') + coord_flip() +
scale_y_discrete(breaks = c(0, .25, .5, .75, 1),
labels=c("0", ".25", ".5", ".75", "1"))
Current plot:

For me, it works with
scale_y_continuous: