The code works fine up until the plot. The problem with the plot is that there are spaces between each column and I don't want that. To better understand what I am trying to do, I want to make a depth-percent plot where on the y axis I have sand-silt-clay(%) Below I enclose an image of the histogram, as well as the code I used to create it. I hope that the image can be displayed (I used the upload function of the Rstudio community, I don't know how to upload an image).
setwd("C:/Users/30693/Desktop/Μεταπτυχιακό 2019-2021/Διπλωματική 2019-2021/Διπλωματική 2019-2021 Λουσοί/Dionisis")
stat = "identity")