Creating two-variable plots
We learned in elementary school that graphics are composed of an x axis and a y axis. Ergo, when something happens in X, there is a resultant change in Y. Understanding this simple phrase helps us to understand that a bi-variate graphic will represent the relationship between two variables of our dataset. If the x variable goes up, what happens to the y variable? What if x is constant?
Those and so many other questions can be raised and answered by visualizations of two variables. The first one we will see is the scatterplot. Let’s move on.
Scatterplot
A scatterplot, also known as a points plot, is widely used for Data Science analysis, especially for regression analysis. Using this kind of plot, it is possible to see whether there is a linear relationship between x and y, for example, or to find another pattern in data. In the sequence of our exploration, we are interested in finding out the effect caused by the increase in horsepower on...