单细胞不同分组之间细胞比例柱状图展示
2023-05-05 本文已影响0人
阿来呀
image.png
ggplot(cellratio,aes(x= celltype,weight = Freq,fill=group))+
geom_bar(position = 'dodge')+
theme_classic(base_size = 14,base_family = 'Arial')+
+ labs(x='',y='Cells(%)')+ theme(axis.title.x=element_blank(), # 去掉 title
+ axis.ticks.x=element_blank(), # 去掉 x 轴
+ axis.text.x = element_text(angle = 45,hjust = 1,size = 16))