Functions of convexity and dimension