#这一步报错
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"
网友评论