Closed MilesMcBain closed 1 year ago
This is for consistency with {scales}
(https://github.com/r-lib/scales/blob/main/R/scale-discrete.r#L28) and {ggplot2}
(scale_colour_discrete()
). rdeck
re-implements the DiscreteRange
to preserve input order, but otherwise is equivalent to scales::DiscreteRange().
While I think a factor / character would generally be a better choice for a category scale, maybe it's needlessly restrictive. One case where ints as they are would be ok, is integer codes from abs admin boundaries.
Created on 2022-04-13 by the reprex package (v2.0.1)
Slightly surprising since integer is 'discrete'.