问题:散点图的边框如何保持黑色,填充色按celltype变量填充?
解决方法:设置geom_point的参数 shape=21,同时aes的参数fill=celltype,不是colour=celltype;
ggplot(data, aes(x = UMAP_1, y = UMAP_2, fill = celltype)) +
geom_point(size = 3,colour="black",shape=21,alpha=0.1) +
scale_fill_manual(values = Color)+ #自己设置颜色
theme_classic()