jasdumas/shinyGEO

Differential Expression Group order does not update

jasdumas opened this issue · 1 comments

Order may not be correct when adding/substracting groups for the Differential Expression stripchart. The labels and colors can change dynamically, but the labels are indicating the wrong data points if changed out of the original order.

This is the original stripchart & Iv'e edited the label to point out the original lowest value

screenshot 2015-08-04 09 54 04

I've swapped the groups in the drop-down menu and you can now see that the data with the lowest value now, and the incorrect label.

screenshot 2015-08-04 09 57 23

This could offer some guidance: http://stackoverflow.com/questions/15706281/controlling-order-of-points-in-ggplot2-in-r

tidyverse/ggplot2#721

The display of a plot should be invariant to the order of the data frame - anything else is a bug. - Hadley Wickham