Skip to content
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

Support for ggtext #297

Open
fmgarciadiaz opened this issue Jun 24, 2021 · 3 comments
Open

Support for ggtext #297

fmgarciadiaz opened this issue Jun 24, 2021 · 3 comments

Comments

@fmgarciadiaz
Copy link

Hi! Could it be possible to add support for ggtext rich text in the geom_node_text function?
That'd be great!

@fmgarciadiaz
Copy link
Author

That could be as simple as adding geom <- GeomRichTextoption in the geom_node_text function, and could provide the opportunity to add rich text and images to node description =)

@kelly-sovacool
Copy link

The default settings for fill, label.color, & label.padding in ggtext::GeomRichText behave more like ggraph::geom_node_label(). So using GeomRichText is very easy to do in geom_node_label() (I got a start here). But for within geom_node_text() I'm unsure how best to override the GeomRichText defaults to get rid of the fill & outline as a default behavior, and not override them if a user wants to manually override the defaults.

@fmgarciadiaz
Copy link
Author

That's amazing! TRUE, geom_node_label is the way to go. =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants