在做堆积条形图的时候,如下
pmbc是seurat对象
ggplot(pmbc@meta.data,aes(x=patient,fill=cell_type))+
geom_bar(position = "fill",width = 0.7)+
xlab(NULL)+ylab("cell.percentage")+
scale_fill_manual(values =c("#663300","#006600","#E47833","#990000"))
在做堆积条形图的时候,如下
pmbc是seurat对象
ggplot(pmbc@meta.data,aes(x=patient,fill=cell_type))+
geom_bar(position = "fill",width = 0.7)+
xlab(NULL)+ylab("cell.percentage")+
scale_fill_manual(values =c("#663300","#006600","#E47833","#990000"))