Added pointsPerBin argument for data.plot()