vegawidget / virgo

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

Dot in the function #18

Closed sa-lee closed 3 years ago

sa-lee commented 3 years ago

I think missing values / logical values aren't being properly handled. i.e.

penguins %>%
  vega() %>%
  mark_point(enc(x = bill_length_mm, y = bill_depth_mm, color = is.na(sex)))

Produces a legend where all points are undefined.

earowang commented 3 years ago

I don't think missing values are probably handled yet. But this issue seems related to . in the is.na().