FeaturePlot图修改

2022-10-19  本文已影响0人  阿来呀

单细胞FeaturePlot图

FeaturePlot(seurat.obj,features = "TBX19",reduction = "umap",pt.size = 1,label = T,label.size = 5,cols = c("lightgrey","blue"))+
  scale_x_continuous("")+scale_y_continuous("")+
  theme_bw()+ #改变ggplot2的主题
  theme( #进一步修改主题
    panel.grid.major = element_blank(),panel.grid.minor = element_blank(), #去掉背景线
    #axis.ticks = element_blank(),axis.text = element_blank(), #去掉坐标轴刻度和数字
    #legend.position = "none", #去掉图例
    plot.title = element_text(hjust = 0.5,size=15) #改变标题位置和字体大小
  )
上一篇 下一篇

猜你喜欢

热点阅读