Dotplot error: subscript out of bound
0
0
Entering edit mode
14 months ago
Xuhao • 0

Hi everyone,

How to solve the problem when I

DotPlot(seuratobject, features =  c("ACTA2"), dot.scale = 8) + 
  coord_flip() + 
  theme_bw() +
  theme(panel.grid = element_blank(), axis.text.x=element_text(angle=90,hjust = 1,vjust=1)) +
  scale_colour_gradientn(values = seq(0,1,0.2), colours = c('#330066','#336699','#66CC66','#FFCC33')) +
  labs(x=NULL,y=NULL) +
  guides(size=guide_legend(order=3)) +
  RotatedAxis()

The problem is likely caused by the fact that there are multiple groups (four group) under "orig.ident".

Thank you tons.

R scRNA-seq seurat • 805 views
ADD COMMENT
1
Entering edit mode

Did you try to remove scale_colour_gradientn? You are passing 6 values and only specifying 4 colours

ADD REPLY
0
Entering edit mode

Got it. Thanks a lot.

ADD REPLY

Login before adding your answer.

Traffic: 1973 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6