You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected the plot's y axis to have a proportion where it ranges from 0 to 1. However, when the color combinations produce single values, the count is provided, not the proportion of 100%.
Here is the code to reproduce the bug:
library(ggplot2)
# Good: Y axis is proportion
ggplot(mtcars, aes(factor(cyl), fill=factor(vs))) + geom_bar(position="fill")