Spatial and temporal signatures of ecological constraints on diversity