I have a dataset like this:
a <- letters[1:10]
b <- c(4.04,5.12,9.69,8.77,8.39,5.77,5.62,1.85,4.58,5.00)
c <- c(14.05,5.71,11.11,9.77,9.06,7.33,6.24,2.28,7.33,5.17)
d <- c("e","f","c","d","a","e","e","b","f","b")
df <-data.frame(a,b,c,d)
I made this plot:
ggplot(data = df, aes(x= b, y= c, shape=d, color = d)) +
geom_point() +
geom_text(aes(label=a), size=3.2, hjust = 0.5, vjust = 1.5)
And I got this:
How can I remove the letter "a" behind each shape in the legend?