The study of how species are distributed across geographic space and how this distribution affects their behavior.