Analysis of polymorphic variation in different types of habitat.