Odd `mark_density()`
earowang opened this issue · comments
penguins %>%
vega(enc(x = body_mass_g, colour = species)) %>%
mark_density()
Yeah this one definitely doesn't work how I expected / is broken try:
penguins %>%
vega(enc(x = body_mass_g, colour = species)) %>%
mark_density()
Missing values causing issues again.
This gives the expected result:
penguins %>%
filter(!is.na(body_mass_g)) %>%
vega(enc(x = body_mass_g, colour = species)) %>%
mark_density()
penguins %>%
filter(!is.na(body_mass_g)) %>%
vega(enc(x = body_mass_g)) %>%
mark_density()
maybe the default bandwidth is off? maybe this more reason for us to compute these things on the r side haha
Should position = "stack" be the default?