Linking patterns in macroecology