You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in using text keys to display the labels of a colour/fill scale.
I think it would be neat if there were a draw_key_markdown() or draw_key_richtext() function to handle formatting of such keys.
For example, in the plot below I'd like the 'Iris' part of the label to be in black, and the species part in the appropriate colour and the whole label in italics.
I'm well aware that there are other options available, such as formatting the scale's labels field, but I'm looking for legend key functions specifically. If this is something that you find appropriate for {ggtext}, I'm reasonably confident I can whip up a PR to consider.
The text was updated successfully, but these errors were encountered:
Hi Claus and Brenton,
I'm interested in using text keys to display the labels of a colour/fill scale.
I think it would be neat if there were a
draw_key_markdown()
ordraw_key_richtext()
function to handle formatting of such keys.For example, in the plot below I'd like the 'Iris' part of the label to be in black, and the species part in the appropriate colour and the whole label in italics.
Created on 2023-12-15 with reprex v2.0.2
I'm well aware that there are other options available, such as formatting the scale's
labels
field, but I'm looking for legend key functions specifically. If this is something that you find appropriate for {ggtext}, I'm reasonably confident I can whip up a PR to consider.The text was updated successfully, but these errors were encountered: