lets-plot icon indicating copy to clipboard operation
lets-plot copied to clipboard

Customizing the legend manually.

Open AndreiKingsley opened this issue 1 year ago • 1 comments

At the moment, the legends are based on mappngs/scales. Beyond that, however, it would be nice to be able to create a legend completely manually, without being tied to other elements of the plot.

For example, I can build the next plot:

image

And I would like to add to it a legend like

<blue line> "A"
<red point> "B"

I can trick lets-plot the following way: image

However it doesn't work well for other aesthetic attributes, so I would like to have a complete customization of the legend, regardless of data/layers/mapping/scales, etc.

AndreiKingsley avatar May 04 '23 11:05 AndreiKingsley