I am trying to independently set colors for stacked barplots in ggplot.
y<-c("enjoyer", "explorer","explorer", "enjoyer", "enjoyer","enjoyer",
"explorer")
z<-c("yes", "no", "yes", "yes", "yes", "no", "yes")
x<-data.frame(y,z)
ggplot(x, aes(y, fill = z))+geom_bar()
This returns the following graph:
I would like to make the bottom parts of each bar different colors. I want the "enjoyer yes" to be black and the "explorer yes" to be green. The top parts can stay the same color or be set manually, no preference.
Appreciate any help!

