-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ggplot2 key_glyphs could be helpful at some point #26
Comments
Here's a blog post that illustrates how to create a custom key glyph. This has the potential to immensely simply the internals (Just making notes for the future...it doesn't sound like anyone has bandwidth at the moment) |
The symbol used in the legend can be customized using the For example, if we exported a new geom library(tidyverse)
ggplot(mtcars) +
geom_point(aes(x = hp, y = mpg, color = "Death")) ggplot(mtcars) +
geom_point(aes(x = hp, y = mpg, color = "Death"), key_glyph = draw_key_boxplot) Created on 2024-02-23 with reprex v2.1.0 |
Yea I think this could work! I want to look into this and how the new You're envisioning that marker symbols get passed to glyphs, or that we expose Silly example, but there are no smileys to find in the plot itself. |
oh users should never know about glyphs. for them, they just pass to us that they want this symbol/emoji at these points, and we take care of the rest. |
Got it, makes sense to me! Hope to explore more in the next week or two. |
https://ggplot2.tidyverse.org/reference/draw_key.html
The text was updated successfully, but these errors were encountered: