Scatterplot to line plot