美文网首页
slingshot 报错 Error in brewer_pal

slingshot 报错 Error in brewer_pal

作者: oceanandshore | 来源:发表于2024-04-08 19:40 被阅读0次
    #这一步报错
    group_colors <- cell_pal(sce_slingshot2$orig.ident, brewer_pal("qual", "Set2"))
    
    Error in brewer_pal("qual", "Set2") : could not find function "brewer_pal"
    

    解决办法:cell_colors <- cell_pal(subset_rnaslot$cell.type, hue_pal())#, brewer_pal("qual", "Set2")

    参考:https://blog.csdn.net/qq_52813185/article/details/132504694

    如果继续报错如下,就加载这个包 library(scales)

    Error in hue_pal() : could not find function "hue_pal"
    

    相关文章

      网友评论

          本文标题:slingshot 报错 Error in brewer_pal

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