I'm still relatively new to R, so any help here is very appreciated.
I created a Likert bar plot, but some of the percentages shown on the plot overlap. I am wondering how to prevent this overlap from occurring? I read about ggrepel, and tried to incorporate ggrepel code but have been unsuccessful. Does anyone know if code exists to ask the percentages shown on the plot (i.e. from plot.percents=TRUE) to not overlap?
Here is my code without an attempt to incorporate ggrepel:
likert.bar.plot(likert_Prevention.ALL, plot.percents=TRUE, plot.percent.high= FALSE, plot.percent.low=FALSE,
center = 3, low.color = "grey72", high.color = "red3", neutral.color = "lightsalmon",
legend.position = "bottom", text.size=3.5)
and my attempt to incorporate ggrepel:
likert.bar.plot(likert_Prevention.ALL, plot.percents=TRUE, plot.percent.high= FALSE, plot.percent.low=FALSE,
center = 3, low.color = "grey72", high.color = "red3", neutral.color = "lightsalmon",
legend.position = "bottom", text.size=3.5) + labs(geom_label_repel()) + labs(geom_text_repel())
Below is a cropped image of the overlapping percentages currently:
Thank you in advance for your help and time! Please let me know if any clarification is needed, as this is my first post to stackoverflow.