Hi everyone, The default range of the Percent Expressed legend ranges from "20" "40" "60" (as shown in the figure), how can I change it to "0 25 50 75 100"?
DotPlot(mrc.har_sub, features = markers.to.plot , dot.scale = 10) + RotatedAxis() +
theme(axis.text.x = element_text(angle = 45, hjust=1, size= 8), axis.text.y = element_text(size = 8)) +
scale_colour_gradientn(colours = pal)+ theme(legend.position="right", legend.text = element_text(size = 8),legend.title = element_text(size = 8)) +
labs(title = "Differentiated markers", y = "", x="") + theme(plot.title = element_text(size=10))
It works!!! Thanks so much. Can I ask one more question? How to change the "average expression" scale into "-1, -0.5, 0, 0.5, 1"?
add
breaks = c(-1, -0.5, 0, 0.5, 1)
toscale_colour_gradientn()
Thanks for your kind help.