added functionality to choose parameter for x-axis