I'm trying to set the x-axis in my Violin Plot to go by each patient rather than it being scattered.
VlnPlot(obj, features = c("classical_basal"), pt.size = 0) + NoLegend() + theme(axis.text.x = element_text(angle = 90, hjust = 1))
The above code gives me the x-axis but there is no pattern or order. I would like the x-axis to be grouped with the HTB, for example ALL of the HTB2867 first, followed by HTB2876, etc...