Split dataset to x and y values depending on plot type
splitPlotData(data, type)
data
matrix with data values (visible or hidden)
type
type of plot