Open Chen123456-stack opened 1 month ago
Please supply detailed code or information.
OK, thank you for your reply! I supply the detailed code as follow:
library(Seurat)
library(ggplot2)
library(ggscatter)
library(ggSCvis)
pbmc <- readRDS("./2.after_celltype_anno.rds")
p2 <- ggscplot(object = pbmc) +
geom_scPoint(aes(color = cell_type, cluster = cell_type),
show.legend = FALSE,
label.gp = gpar(fontsize = 8, fontface = "bold.italic")) +
facet_wrap(~group, ncol = 3) +
theme_bw() +
theme(panel.grid = element_blank(),
axis.ticks = element_blank(),
strip.background = element_blank(),
strip.text = element_text(face = "bold.italic", size = rel(1)),
axis.text = element_blank()) +
xlab("")
pbmc was a seurat V5 object I want to draw a single cell density map using the above code, but the above error occurs
Please upload your test data, let me have a try.
error occurred when i use ggscplot, could you give me some advise?