getPlotData function

Get the data for plotting with ggplot()