adding log scale number of groups