I'm working on single-cell RNA seq data with the Seurat package.i want to make a barplot with cluster in x-axis and percentage of cell type on the y-axis. i applied dittoseq package and this is my code :
object = s.integrated,
var = "cell.type",
group.by = "seurat_clusters",color.panel = col_vector_samples)
in the output picture, my cluster numbers aren't sorted, I tried to sort them but it just sorted the numbers, not the bar (data) itself.
Any recommendations or solutions would be appreciated.