Adding text labels to ggplot2 scatterplot

后端 未结 1 868
轻奢々
轻奢々 2021-02-04 02:34

Is there a good way easy way to add text labels to the circles on the graph? I haven\'t able to do it using the directlabels package because I get the error:

Error in d

相关标签:
1条回答
  • 2021-02-04 02:57

    Add geom_text(aes(label=Occupational.Group), size=3) to the plot. You'll need to play with the size though.

    enter image description here

    0 讨论(0)
提交回复
热议问题