Mapping collective behavior in the big-data era