Disentangles the effects of geographic and ecological isolation