Hi, I produced a dotplot with the function
DotPlot(obj, features =unique(top2_markers$gene), cols = c("white", "blue"), group.by = "res.0.2", col.min = -0.5) + theme(axis.text.x = element_text(angle = 45, hjust = 1)) + coord_flip()
and I got this
but I would to order the y-axis ( genes) in the way to visualize the dots in order in a diagonal line from bottom left to top right.
Could u suggest me a way to do it?
you can try giving factor instead of a regular vector of gene names to the features parameters, where levels would of the factor would be the the order of the genes you cant in the DotPlot.
Hi, I produced a dotplot with the function DotPlot(obj, features =unique(top2_markers$gene), cols = c("white", "blue"), group.by = "res.0.2", col.min = -0.5) + theme(axis.text.x = element_text(angle = 45, hjust = 1)) + coord_flip() and I got this
but I would to order the y-axis ( genes) in the way to visualize the dots in order in a diagonal line from bottom left to top right. Could u suggest me a way to do it?