Seurat Dimplot, Vlnplot画图时报错,Error in setup_panel_guides(..., self = self) : unused argument (list(~features.plot, ~id))

Seurat Dimplot, Vlnplot画图时报错,Error in setup_panel_guides(..., self = self) : unused argument (list(~features.plot, ~id))

pdf(paste0("EBV_GaC", "_Marker_genes_Vln.png"), width = 30, height = 10)
> DotPlot(object = subset_cells, features = c("PTPRC", "CD3D", "CD3E", "MS4A1", "COL1A1", "VWF", "EPCAM", "KRT18", "KRT19", "SDC1", "JCHAIN", "CLEC9A", "CLEC10A", "CD14", "CD68", "C1QC", "C1QA", "HBB"),, cols = c(low, high), scale = F) +
+ scale_y_discrete(limits=rev) +
+ theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5))
Error in setup_panel_guides(..., self = self) :
unused argument (list(~features.plot, ~id))

 

原因:ggplot2 版本过高造成的

解决方法:降低ggplot2 版本到3.5.0以下 (如:3.4.3)

posted @ 2024-04-10 10:46  何帅  阅读(107)  评论(0编辑  收藏  举报