本文介绍了识别散点图(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)中的点
发布评论