The study of interactions between plants and their environment, including biotic and abiotic factors.