scRNAtoolVis icon indicating copy to clipboard operation
scRNAtoolVis copied to clipboard

set the color seed in AverageHeatmap

Open PingLiu2021 opened this issue 2 years ago • 6 comments

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.

PingLiu2021 avatar Jun 27 '22 07:06 PingLiu2021

Re-insatall this package:

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

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

image

junjunlab avatar Jun 27 '22 08:06 junjunlab

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

PingLiu2021 avatar Jun 27 '22 08:06 PingLiu2021

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

PingLiu2021 avatar Jun 27 '22 21:06 PingLiu2021

It seems there is no such error in my computer.

junjunlab avatar Jun 28 '22 01:06 junjunlab

Try it on your local computer instead of server.

junjunlab avatar Jun 28 '22 03:06 junjunlab

family comes liao

Toomshots avatar Jun 28 '22 12:06 Toomshots