I have something very similar to the first answer(the accepted one) to the problem in this link.
ggplot bar plot side by side using two variables
How do I change it, so that instead of reading "variable" in the histogram I read any other word of chose, as well as "x" and "y"