Vindaar / ggplotnim

A port of ggplot2 for Nim
https://vindaar.github.io/ggplotnim
MIT License
177 stars 15 forks source link

Allow arbitrary expressions in `aes` macro #140

Open Vindaar opened 2 years ago

Vindaar commented 2 years ago

Currently the aes macro is very picky about the kind of NimNodes it accepts. Sometimes if one wishes to assign a scalar value (and in theory even a vector like value as long as the length is same as DF length), it would be nice to support arbitrary expressions, e.g.:

aes(xMin = min(df["x", float]))