vegawidget/virgo

Scatterplot Matrix

earowang opened this issue · 7 comments

https://vega.github.io/vega-lite/examples/interactive_splom.html

vega(cars) %>%
  mark_point(enc(x = ac(c(x1, x2, x3)), y = ac(c(y1, y2, y3), vg_mean))) # or supports tidy select

The current implementation accepts one variable or a functional form of variable. It needs refactoring to support tidy select.

I think we will need this for parallel coordinates as well,

vega(penguins) %>%
  mark_parcoords(enc(x = ac(beak_length_mm:body_mass_g), color = species))

One other idea for verbiage, would be splice and to apply a transform splice_map

purrr::splice() 😓

I think this might need more of a rethink as it requires restructuring the spec quite a bit... :(

It could possibly follow the code structure as what we've done with facet?

I'll look into it tomorrow :)

The way you implemented ac() looks brilliant! 🤩