我正在尝试创建一个散点图,它使用ggplot2在彼此之间的某个距离内的所有点之间有路径,类似于下面的附加图像。如何修改以下代码以包含彼此距离在0.2以内的所有点之间的路径?
library(ggplot)
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width)) +
geom_point()
?
?
转载请注明出处:http://www.hanxingera.com/article/20230526/945244.html