

Scatter plot examples code#
Put a mark there and color code if needed.įor example, suppose a set of data includes the age (measured in months) and height (measured in inches) of students. Next, move up until reaching the dependent variable value for that point. Then, for each data point, move to the right along the $x$ axis to the value corresponding to that point’s independent variable value. Label the $x$ axis as the independent variable and the $y$ axis as the dependent variable.

Time and age are almost always independent variables, but others, like temperature, will vary based on context. To plot these points, first decide which variable is the independent variable and which is the dependent variable. If there are $50$ data points in a set, there will be $50$ dots on the graph. Scatter Plot GraphĪ scatter plot graph consists of dots plotted along an $x$ and $y$ axis corresponding to each data point in a set. The scatter plot for this data set could have red dots for data points from girls and blue dots for data points from boys. For example, consider a data set that includes the age and height of students at a school. Sometimes, by color coding the dots in a scatter plot, a third qualitative variable can be included. That is, scatter plots show data that consists of two variables measured quantitatively.Įxamples of bivariate data include the age and height of students at a school, the length and width of houses in a subdivision, and the temperature and humidity in a city.

These graphs are important for all subjects that use statistics and data analysis.Ī scatter plot is a graphical display of bivariate data. Scatter plots are used for data with two quantitative variables or data with two quantitative variables and one simple qualitative variable. A scatter plot is a graph that displays all of the data points for a set of data.
