I use heat maps in ggplot2 to visualize how different groups engage with texts. The more frequently a group cites a given text, the more brightly it shows up in the heat map, which is arranged such that groups are on the y-axis and book titles are aligned on the x-axis.
The same data I use to generate heat maps I also use to calculate the Euclidean distance between groups' citation patterns. My practice is usually to report these distances in tables. However, I would like to find a way to include some of the Euclidean distances in my presentation of heat maps. A handy way to do that would be to space the groups along the y-axis by their distance from a focal group's data. I have not, however, found any way to force variable spacing between categories on ggplot2. Surely there's a call to make this possible, but I've run out of places to look.