Fantastic tutorial, the code worked well, thank you! I was wondering two things: 1. Is there a way to keep this separation and have the points in an aligned straight vertical line/axis instead of staggered cluster? 2. My data looks very similar to your example, but I do not have a subgroup c, only in group A, making the position of points offset for the following groups that do have all subgroups represented. Is there a way do adjust this positioning if there are no values represented in some group's subgroups?
Hello Michael, If I got you well, this script can be used to implement what you want. library(ggplot2) # libraries library(dplyr) set.seed(123) # Example data df