Spatiotemporal patterns in models of biological invasion and epidemic spread