Closed pprevos closed 3 years ago
The problem is coming from padding.x = unit(16, "mm"))
. This puts so much padding between the text and the boundaries of the tile that when it is drawn at a small absolute size there is no space at all for the text. ggsave()
uses inches by default so the total image is only 74 by 33 mm. If you remove this argument, or specify a much smaller padding, it should work.
I need to save the treemap as an image, but when I do so, any text is not included. This is a minimum working example":
The treemap itself is saves, but the labels have vanished. When I remove the width and height variables, the files saves with the relevant text.