Spatial and temporal analysis in ecology