Hello antonioggsousa,
Thank you so much for your great help!
Thank you!
Best,
Yue
Hello,
I want to change the healthy control into green color, and severe into red color.
Thanks in advance for any help!
Best,
Yue
> RidgePlot(Basal, features = c("MAFF"),group.by="tech") + theme(axis.title.y = element_blank())
Picking joint bandwidth of 0.0865
> RidgePlot(Basal, features = c("MAFF"), cols.use = c("green","blue","red"),group.by="tech") + theme(axis.title.y = element_blank())
Error in RidgePlot(Basal, features = c("MAFF"), cols.use = c("green", :
unused argument (cols.use = c("green", "blue", "red"))
Hi,
Did you try cols argument instead of cols.use. I guess this might depend on the Seurat version that you have.
So, I tried the following and it works:
library("Seurat")
packageVersion("Seurat") # ‘3.1.5’
data("pbmc_smal") # import example data
RidgePlot(object = pbmc_small, features = 'PC_1', cols = c("red", "blue", "green")) # plot ridge plot
Result:

c("red", "blue", "green") follows the order at c("severe", "mild", "healthy_control").
I hope this answers your question,
António
Hello antonioggsousa,
Thank you so much for your great help!
Thank you!
Best,
Yue
You're welcome!
Do not forget to:
If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work. This will help further users that might find this post useful to find the right answer.

Cheers,
António
Log in to answer this question.