Constructing a tree map in R