vegawidget / virgo

A DSL for layered grammar of interactive graphics in R
https://vegawidget.github.io/virgo/
Other
16 stars 2 forks source link

scale seems to be broken #32

Closed sa-lee closed 3 years ago

sa-lee commented 3 years ago
cars <-
  jsonlite::fromJSON("https://vega.github.io/vega-editor/app/data/cars.json")

cars %>% 
  vega() %>% 
  mark_bar(
    enc(
      x = vg_count(), 
      y = Name, 
    )
  ) %>% 
  scale_y(breaks = NULL)

Error occurs at rescale_domain()

sa-lee commented 3 years ago

@earowang does rescale_domain() need to dispatch on factors and virgo_op?

earowang commented 3 years ago

Yep, should dispatch on factors and others.