识别散点图(qplot)中的点

编程入门 行业动态 更新时间:2024-10-19 01:27:49
本文介绍了识别散点图(qplot)中的点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否有一种方法可以识别(意味着:显示观察值)散点图中的某些点(使用qplot()),比如 identify 对于plot()?

最好的问候,Sarah

解决方案

试试通过我上面提供的链接进行修改

Is there a way to identify (means: show the observation number) some points in a Scatterplot (using qplot()) such as identify does for plot()?

Best regards, Sarah

解决方案

Try this modified from the link I provided above

dat <- data.frame(x = rnorm(10), y = rnorm(10), label = seq(1:10)) ggplot(dat, aes(x,y)) + geom_point() + geom_text(data = dat, aes(x,y, label = label), hjust = 2)

更多推荐

识别散点图(qplot)中的点

本文发布于:2023-07-19 08:48:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1154864.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:散点图   qplot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!