Description
This is an issue so that we remember to come back to this. As noted by. @clauswilke here: #3561 (comment) , constructing ternary diagrams using ggplot requires a lot of copying of ggplot2 code, which has resulted in the current breaking of the ggtern package.
At the heart of the issue is that a ternary diagram is a transformation of 3 variables, rather than 2. Currently, x- and y-scales are hard-coded in the Layout
and other places, which makes adding an additional aesthetic that should be treated as a position aesthetic impossible (see #2540 (comment) ). I can't find the thread, but this came up in the context of coord_sf()
, where geometry
is also sort of a position aesthetic (that only sort of acts like one).
One approach would be to allow coords to define what is a position aesthetic. Currently there are a lot of definitions of "what is a position aesthetic" (#3342). If I remember correctly, this will break Coord and possibly Facet subclasses that are passed scale_x
and scale_y
.
Anyway, not pressing, just something that should be considered when coords are revisited.