I have been searching for most of the day so far to find a way to stop labels from overlapping each other but I can't find an adequate solution. The closest i have found is this example on stack overflow, but using that method i get the below error
Error: Aesthetics must either be length one, or the same length as the dataProblems:c(2, 4)
Is there a better way to do this?