Conversation
Traits with integer values are better displayed by auspice using an ordinal scale. This will result in a legend with integer entries rather than our current situation of floats.
|
What happens when viruses with 20 I'd think that S1 mutations might be better covered as a continuous variable, but with defined intervals as sketched out in nextstrain/auspice#1340, but open to your advice James. |
|
This change reminds me of the opposite change that just happened in the seasonal-flu repo for epitope mutations. :) @trvrb's argument about ordinal values technically only considering rank instead of intervals is convincing (Vega uses this technical definition of ordinal). Although, I can imagine that we don't want to have to manually define bounds for each continuous whole-numbered variable. It would be nice if Auspice's automated segmentation of the data range used integer bounds when the inputs are integers. This latter feature is similar to both the "nice" and "bins" options of Vega's quantitative scales. On the flip side, a nice feature of using the ordinal values is that one can hover over a specific value in the legend and see the corresponding tips in the tree that match that exact value. With the continuous values, I can't tell as easily what values the highlighted tips have because they are in some range handled opaquely by the legend. (Sorry this is a bit non-committal as a review, since I can see benefits to both approaches.) |
|
I think integer legend values are definitely preferable. We have been using |
|
we are at about 40 S1 mutations now, way past the point where integers are useful. |
Traits with integer values are better displayed by auspice using
an ordinal scale. This will result in a legend with integer
entries rather than our current situation of floats.
Left: this PR, right: current nextstrain.org