ggplot2_聚类结果可视化

来源:互联网 发布:js数字转为汉字 编辑:程序博客网 时间:2024/06/05 17:34

聚类结果图

这里写图片描述

# load datdata("iris")iris = as.data.table(iris)# Seeking boundaryhulls <- iris[, .SD[chull(Sepal.Length, Petal.Length)], by = "Species"]# ggplotggplot() +     geom_point(data = iris, aes(x = Sepal.Length, y = Petal.Length, col = Species)) +    geom_polygon(data = hulls, aes(fill=Species), alpha = 0.5) 
原创粉丝点击