how to avoid overlapping labels with identical data points in scatterplot / ggplot?
问题 Is there any function etc which avoids overlapping data labels for identical data points in a scatter plot? I have checked the various questions/responses to textxy, direct.label, and geom_text(), but I haven't been successful. Maybe it's simply not possible. Here's a sample of the relevant data: structure(list(cowc = structure(c(5L, 7L, 24L, 24L, 23L, 36L, 34L, 38L, 23L, 6L, 8L, 38L, 38L, 23L, 5L, 7L, 24L, 24L, 23L, 36L, 34L, 38L, 23L, 6L, 8L, 38L, 38L, 23L), .Label = c("AFG", "ANG", "AZE",