Functional connection between freshwater plants, ecosystems revealed