wilkox / treemapify

🌳 Draw treemaps in ggplot2
http://wilkox.org/treemapify
213 stars 18 forks source link

Wrap text in geom_treemap_text? #9

Closed py closed 7 years ago

py commented 7 years ago

Great package. It's always nice to use the familiar grammar of graphics syntax.

I've been doing many treemaps lately using the treemap package. A nice feature of that package is that it will wrap label text onto multiple lines to preserve legibility.

Have you considered adding this as an option for the geom_treemap_text geom? I'll look at the code.

Thanks.

wilkox commented 7 years ago

This is a great idea. I'll have a look at adding something like geom_reflow_text to ggfittext, then give geom_treemap_text an argument to invoke it.

wilkox commented 7 years ago

@py I've added a ‘reflow’ option to geom_treemap_text and geom_treemap_subgroup_text. Let me know if you find any issues. Thanks for the suggestion!

py commented 7 years ago

Great work. I tested it today and it's working. This helps me immensely. Thank you!

On Sat, Mar 11, 2017 at 4:59 AM David Wilkins notifications@github.com wrote:

Closed #9 https://github.com/wilkox/treemapify/issues/9.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wilkox/treemapify/issues/9#event-995937583, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOB0kSCQM0k1hBYKZv3pJovaznvTahUks5rkn6mgaJpZM4MZ7w8 .