Split dataset to x and y values depending on plot type
splitPlotData(data, type)
data
type
Useful links