ggunchull

作者: 可能性之兽 | 来源:发表于2022-10-10 00:05 被阅读0次
    library(Seurat)
    library(ggplot2)
    library(ggunchull)
    
    data("pbmc3k")
    
    plotData <- as.data.frame(pbmc3k[["tsne"]]@cell.embeddings)
    plotData$cluster <- pbmc3k$seurat_clusters
    
    ggplot(plotData, aes(x = tSNE_1, y = tSNE_2, fill = cluster, color = cluster)) +
      stat_unchull(alpha = 0.5, size = 2) +
      geom_point(size = 0.5) +
      theme(
        aspect.ratio = 1,
        panel.background = element_blank(),
        panel.grid = element_blank(),
        axis.line = element_line()
      )
    
    image.png
    sajuukLyu/ggunchull: A ggplot extension for drawing smooth non-convex circles around a set of points. (github.com)

    相关文章

      网友评论

        本文标题:ggunchull

        本文链接:https://www.haomeiwen.com/subject/akwnartx.html