Default legend when scaling dotplots
What kind of feature would you like to request?
Additional function parameters / changed functionality / changed defaults?
Please describe your wishes
Hi Team,
Thanks so much for this great tool; it's really useful in my work!
I noticed in a few publications that people scale their dotplots (sc.pl.dotplot) with standard_scale='var' using very few (or even only 2) groups, resulting in false interpretations about expression levels (they observe differences that are not meaningful). This is not always obvious to the reader because the sc.pl.dotplot function displays the 'mean expression in group' default color legend title even if the scaling argument is used. I would like to suggest changing the defaults here so that if the scaling argument is used, it says something different than "mean expression". Something like:
if self.standard_scale == 'var': self.color_legend_title = 'scaled gene expression'
or
DEFAULT_SCALE_COLOR_LEGEND_TITLE = "Minmax scaled expression\nin group"
Thanks so much for all your help. I'm happy to explain this in more detail if needed.
Best, Elias