add subtotals and make the figure fit in a single column