ggvis icon indicating copy to clipboard operation
ggvis copied to clipboard

For categorical scales, should be able to set domain with named range

Open hadley opened this issue 11 years ago • 3 comments

So that you can do (e.g.)

vis %>% scale_numeric("fill", c("4"= "red", "6" = "blue", "8" = "green"))

instead of

vis %>% scale_numeric("fill", c("4", "6", "8"), c("red", "blue", "green"))

hadley avatar Jun 30 '14 17:06 hadley

I think this will require adding a custom scale and dataset for name mappings.

wch avatar Sep 30 '14 19:09 wch

Any update on this?

pssguy avatar Jan 05 '15 03:01 pssguy

Still nothing?

hack-r avatar Sep 29 '16 01:09 hack-r