ggplot(data = Cell_Num, mapping = aes(x = Cell_type, y = Number, fill = Cell_type)) + geom_bar(stat = 'identity', position = 'identity') + xlab('Cell_type')+geom_text(mapping = aes(label = Number))+ theme_bw() + #去除背景色
theme(panel.grid=element_blank())+theme(axis.text.x = element_text(angle = 45,hjust = 1))#横坐标倾斜45度
ggplot画图去除背景
最新推荐文章于 2024-06-14 14:08:37 发布