When I plot the graph, it pushes the before and after points to the end of the x-axis (right side), how can i change my code so it places these at the start? The code I used is below.
The reason why your x-axis is not giving you the desired outcome is because you must "relevel" the factors. This is easily customizable by the forcats package. Documentation for this can be found here: