Climate and plant distribution at global and local scales