Spatiotemporal patterns in ecology and epidemiology