Changes to makeComparisonPlot helper functions to support different data inputs