I have created the following chart in ggplot2 using the following data.
As you can see there are three sets of similar categories—XX, YY, ZZ, LL. These categories also have two sub-division-- _1 and _2. When I plot the data, all the categories are plotted equidistant from each other as shown in the chart below.
However, I want the similar categories like LL_1 and LL_2 to be closer to each other, and the space between different pairs like XX , ZZ, YY, and YY to increase. I don't want all the categories to be equidistant from each other. I want to custom change the distance of similar and dissimilar categories.
I also don't want to use facet_wrap, and would like all the data to be shown in the same chart. I would really appreciate if someone could guide on how to solve this problem.