You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use FeaturePlot to display gene distribution. To make it clear, I put 3 colors as parameters. #cols = c("lightgrey", "#00ff00", "#ff0000")
It used to work well. But now when I use these parameters, the legend bar changes from (0,3) to (1,2). All the dots there were just red and there's no grey. How do I change the legend bar to be consistent with my previous data?
The text was updated successfully, but these errors were encountered:
Not member of dev team but hopefully can be helpful. What version of Seurat was previously working for you to plot? If you know when it was working I can look back. However, providing more than 2 colors traditionally to FeaturePlot caused scale to artificially change to match number of colors and not expression data which makes comparing plots of different genes tricky.
As fyi using the default FeaturePlot in Seurat the gray you are providing as first value gets blended with the others in scale so it can be tricky if you intending gray to be the color for points with no expression.
FeaturePlot_scCustom(obj, features = "GENE", colors_use = c("#00ff00", "#ff0000"))
As final note (and colorblind person) the red green combo you have picked is not very color blind friendly (also doesn't really have great gradient transition) which makes it very hard to tell the difference between the points on the plot.
I use FeaturePlot to display gene distribution. To make it clear, I put 3 colors as parameters. #cols = c("lightgrey", "#00ff00", "#ff0000")
It used to work well. But now when I use these parameters, the legend bar changes from (0,3) to (1,2). All the dots there were just red and there's no grey. How do I change the legend bar to be consistent with my previous data?
The text was updated successfully, but these errors were encountered: