Adds scatter plot functionality