junjunlab / scRNAtoolVis

Useful functions to make your scRNA-seq plot more cool!
Other
258 stars 27 forks source link

set the color seed in AverageHeatmap #2

Open PingLiu2021 opened 2 years ago

PingLiu2021 commented 2 years ago

Hi, I have one question: how to set the color seed of AverageHeatmap to ggplot2 default color? Thanks so much. I think it is a very nice tool for some functions on scRNA-seq.

junjunlab commented 2 years ago

Re-insatall this package:

library("scales") 
mycol <- hue_pal()(9)

# plot
AverageHeatmap(object = pbmc,
               markerGene = markers$gene,
               annoCol = TRUE,
               myanCol = mycol)

image

PingLiu2021 commented 2 years ago

Thank you so much for your kind reply:)!!!

PingLiu2021 commented 2 years ago

不好意思,我还有一个问题,为什么我试运行你的代码,有下面这个bug?? image

junjunlab commented 2 years ago

It seems there is no such error in my computer.

junjunlab commented 2 years ago

Try it on your local computer instead of server.

Toomshots commented 2 years ago

family comes liao