The clustering of rising diapirs and plume heads