AlgebraOfGraphics.jl icon indicating copy to clipboard operation
AlgebraOfGraphics.jl copied to clipboard

How to apply the pair syntax?

Open bardo84 opened this issue 3 years ago • 0 comments

Re https://discourse.julialang.org/t/algebraofgraphics-question/72982

To name axes or legends in this format you would use the pair syntax, that is x => "x" , y => "y" , grp => "group" .

How to apply the pair syntax? data(df) * mapping(:bill_length_mm => (t -> t / 10) => "bill length (cm)") appears again for the other data(df) form. (How can I understand this syntax though?) I tried some possible places. VSCode flags where the syntax is obviously wrong, other locations give run-time errors. I searched but could not find code with => in the tutorial or gallery examples.

bardo84 avatar Dec 13 '21 22:12 bardo84