I am trying to obtain a bar plot where each bar is made of a pile of squares, so that it is easier to count the observations on each bar. Here is a minimal example