I'm trying to get a stacked bar plot, but (I think) the problem is, that I have ranged y-values:
Punkt Tiefe Zersetzungsgrad
JE1 000-050 H10
JE1 050-100 H10
JE1 100-150 H6
JE1 150-200 H6
JE1 200-250 H5
JE1 250-300 Sandmudde
JE1 300-350 Sandmudde
JE1 350-400 Organomudde
JE3 0-50 H10
JE3 50-100 H9
JE3 100-150 H9
JE3 150-200 H8
JE3 200-250 H6
JE3 250-300 H6
JE3 300-350 H6
JE3 350-400 H6
JE3 400-450 Sandmudde
Right now, R is just stacking up bars without contexting it to the values in "Tiefe". The bars aren't even the height, they should be. It seems, R is just randomly doing things. I think the problem lies wihtin the y values, as they are ranges and not singular values. I tried a lot of different things, searched through forums etc., but didn't get the idea, what to do.
Any help would be appreciated. My Code:
zer <- read.table("HorizonteAmanda.csv", header = T, sep = ";", dec = ",", comment.char = "#", fileEncoding="UTF-8-BOM")[c(1:17),]
plot <- ggplot(zer, aes(x = Punkt,y = Tiefe, color = Zersetzungsgrad))
plot + geom_bar(stat = "identity")