ralsei / graphite

A data visualization library for Racket.
https://docs.racket-lang.org/graphite/index.html
GNU Affero General Public License v3.0
34 stars 4 forks source link

Seamless qualitative variable support #5

Open ralsei opened 3 years ago

ralsei commented 3 years ago

Currently, renderers that should have support for qualitative variables do not. While some renderers only make sense for quantitative variables (lines for a time series, histogram, ...), the notable exceptions are points and col.

Namely, points should be able to display a dot-plot, and col should achieve similar results to bar (except the data should be taken literally).

Furthermore, boxplot should not assume a qualitative variable. In short, we need qualitative-quantitative inference. By all means, this "inference" could just be string?

Note that since plot generally expects that both axes are quantitative (and anything against it requires some isomorphism to a subset of the reals), this is antithetical to the design of plot.

ralsei commented 3 years ago

Partially resolved by #6. There are a few things I want to work out, namely:

Altogether, with define-renderer etc, metadata, and now dealing with qualitative and quantitative variables, I'm beginning to get something kind of close to ggproto and that functionality, at least internally. It may be useful to look at what ggproto does here, and its semantics.