How to set the same number of datapoints in the different ranges in correlation chart

I am beginner in working with machine learning. I would like to ask a question that How could I set the same number of datapoints in the different ranges in correlation chart? Or any techniques for doing that? . Specifically, I want to set the same number of datapoints in each range (0-10; 10-20;20-30;...) in the image above. Thanks for any help.

Topic correlation dataset machine-learning

Category Data Science


You can bin your variables to prevent overplotting and make the output cleaner.

Here is an example from StackOverflow:

https://stackoverflow.com/questions/16947210/making-binned-scatter-plots-for-two-variables-in-ggplot2-in-r

This may not be exactly what you need since you did say you want the same number of datapoints in each range (or bin). You would have to add some code if you wanted that exact format.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.