wilkox / treemapify

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

Line break? #13

Closed cendt closed 7 years ago

cendt commented 7 years ago

Dear wilkox, is it possible to allow line breaks for the text inside the boxes? By default, if a label is to long, the box simply stays empty. Even when the label contains of several words which could be split into several lines easily. Best Christian

wilkox commented 7 years ago

Thanks for the report Christian. geom_treemap_text has an option reflow = T that will reflow the text to fit a box. The documentation for ggfittext has some more details. Try it out and let me know if it fixes your problem!