Input data frame must be in tidy format (see article by Hadley Wickham, below), i.e. each row must represent a single observation and each column a single variable. The area and fill parameters are mandatory; grouping and label factors are optional. Note that while adding a label will not change the treemap layout, adding a group will, as observations from the same group will be kept together.
Rect placement proceeds from the bottom left corner, alternating between moving rightwards and moving upwards. See Bruls et al. 1999 for the full algorithm.
treemapify(data, area, fill, group = FALSE, label = FALSE, xlim = c(0, 100), ylim = c(0, 100))
Bruls, M., Huizing, K., & van Wijk, J. (1999). Squarified Treemaps (pp. 33-42). Presented at the In Proceedings of the Joint Eurographics and IEEE TCVG Symposium on Visualization.
http://www.win.tue.nl/~vanwijk/stm.pdf
"Tidy Data" is described by Hadley Wickham in an unpublished manuscript: http://vita.had.co.nz/papers/tidy-data.pdf
ggplotify