satijalab / seurat

R toolkit for single cell genomics
http://www.satijalab.org/seurat
Other
2.29k stars 915 forks source link

Some dots in dotplot are white when using split.by function #2752

Closed drmofjv closed 4 years ago

drmofjv commented 4 years ago

Hello,

I was trying to make a dotplot with the split.by function. However, when I do this some of the dots turn out to be white and therefore unvisible in the plot, while this does not happen when I don't use the split.by function. Is there a way to avoid this from happening? The code I used is: DotPlot(seurat_control_filt, features = rev(markers.to.plot.c), dot.scale = 4, split.by = "Age", cols = c("#5681c9", "#de6f96")) + RotatedAxis() And it came out looking like this:

Dotplot_markers_control_split_b-1

So for example the last dots for the WBC and also some of the Sc dots are white...

Thank you very much in advance!

timoast commented 4 years ago

I think this is due to the custom color scale you've provided. If you choose a different color scale you shouldn't have this issue

drmofjv commented 4 years ago

I think this is due to the custom color scale you've provided. If you choose a different color scale you shouldn't have this issue

Unfortunately I have the same problem when I just use the default colors... So I don't think my color scale is the problem...

svaidy88 commented 1 year ago

@drmofjv - I have the same issue. I am curious if you figured out a solution