可视化的展示方式可以使数据更易读,且容易看出一些数据下隐藏的“结果”,而添加注释则可以进一步聚焦到想重点展示的“信息”。...二 添加“注释”
2.1 添加文字标签
1) 通过x y 指定标签的位置
p + annotate("text", x = 4, y = 25, label = "add text",...如果待注释的text太多,可使用ggrepel包解决标签太多导致的重叠问题
ggplot2-plotly|让你的火山图“活”过来
2.2 点注释
1)添加点
p + annotate(geom = "..., arrow = arrow(length = unit(2, "mm"))
) + annotate(geom = "text", x = 4.1, y = 30.1, label = "关注这个点?...2.4 添加垂直线
p + geom_hline(yintercept=25, color="orange", size=1) + geom_vline(xintercept=3, color="orange