JetBrains / lets-plot-kotlin

Grammar of Graphics for Kotlin
https://lets-plot.org/kotlin/
MIT License
430 stars 36 forks source link

Too limited mapping options in `GenericAesMapping` #82

Closed holgerbrandl closed 2 years ago

holgerbrandl commented 3 years ago

As of v3.01 only very few aesthetics attributes are supported in GenericAesMapping. Because of that many ggplot2 plots are not compatible with letsplot at the moment.

It would be nice to support more attributes such as yintercept, xintercept, size, alpha, shape, stroke, ymin, ymax, xend, yend, weight and label.

alshan commented 3 years ago

Many more mapping are supported by the layers themselves. For example, you can map the size of point using mappings in the points layer:

p + geomPoint {size="brainwt"}

Is this what you are looking for?

Perhaps we can extend the list of 'generic' mappings as well.

alshan commented 2 years ago

Fixed in v3.2.0