美文网首页
R 调色板

R 调色板

作者: Bellon | 来源:发表于2022-11-07 16:28 被阅读0次

    # **************** 调色盘~~~~

    library(RColorBrewer)

    cor <- c(brewer.pal(8, "Dark2"),brewer.pal(12, "Paired"),brewer.pal(8, "Set2"),brewer.pal(9, "Set1"))

    +scale_color_manual(values=cor)

    #查看色板描述。

    brewer.pal.info

    DimPlot(obj , group.by = 'cts',cols = cor,label = TRUE)

    https://www.jianshu.com/p/c42b6b7bc92f

    相关文章

      网友评论

          本文标题:R 调色板

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