*Updated with an example
Hello,
I am trying to make a stacked bar chart where the x-axis is categorical, by the y-axis is continuous. As it is, my code produces a bar chart where instead of a stacked chart, the bars are colored to designate the value for the second y-value. I want to produce a typical stacked chart where the color changes where the first y-variable ends. Here is my current code:
library(ggplot2)
Bar <- ggplot(iris,aes(Species,Sepal.Width,fill=Sepal.Length))+
geom_col()
Bar
Created on 2019-02-05 by the reprex package (v0.2.1)
Thanks!