How to Make a Scatter Plot (Tutorial with Examples)
A scatter plot (also called a scatter diagram or scatter graph) displays individual data points on a two-dimensional plane, using the horizontal axis for one variable and the vertical axis for another. It is the go-to chart for answering one fundamental question: Is there a relationship between these two variables? This tutorial shows you exactly how to make a scatter plot, interpret correlation patterns, add trend lines, and extend to bubble charts for a third dimension.
When to Use a Scatter Plot
Use a scatter plot whenever you want to explore the relationship between two continuous (numerical) variables. Common scenarios include:
- Marketing: Ad spend vs. revenue
- Health: Exercise hours vs. resting heart rate
- Education: Study hours vs. exam score
- Real estate: Square footage vs. sale price
- E-commerce: Page load time vs. bounce rate
If either variable is categorical (e.g., country names, product categories), a bar chart or horizontal bar chart is usually a better choice.
Step-by-Step: Build a Scatter Plot
- Prepare your data. You need two numerical columns. Example: "Hours Studied" and "Exam Score" for 30 students.
- Open the ChartLoad Scatter Plot maker.
- Paste or type your data into the panel. Column A becomes the X-axis; Column B becomes the Y-axis.
- Label your axes clearly—"Hours Studied" on X, "Exam Score (%)" on Y.
- Optionally add a trend line (linear regression) to quantify the relationship.
- Export as PNG, SVG, or PDF.
Understanding Correlation Types
The pattern formed by the data points tells you the type and strength of the relationship.
| Correlation Type | Pattern | Example | R Value Range |
|---|---|---|---|
| Strong Positive | Points slope upward, tightly clustered | Study hours vs. exam score | +0.7 to +1.0 |
| Weak Positive | Points slope upward, loosely scattered | Age vs. income (working years) | +0.3 to +0.7 |
| No Correlation | Points form a random cloud | Shoe size vs. IQ | −0.3 to +0.3 |
| Weak Negative | Points slope downward, loosely scattered | Temperature vs. hot cocoa sales | −0.7 to −0.3 |
| Strong Negative | Points slope downward, tightly clustered | Price vs. quantity demanded | −1.0 to −0.7 |
Remember: Correlation does not imply causation. A scatter plot showing that ice cream sales and drowning incidents both rise in summer does not mean ice cream causes drowning—both are driven by hot weather.
Adding Trend Lines
A trend line (also called a line of best fit or regression line) summarizes the overall direction of the data. The most common type is a linear trend line, which fits a straight line minimizing the sum of squared vertical distances from each point to the line.
ChartLoad can add a linear trend line with one click. The tool also displays the R-squared value—a number between 0 and 1 that indicates how well the line fits the data. An R-squared of 0.85 means 85% of the variation in Y is explained by X.
For curved relationships (e.g., diminishing returns), you can fit polynomial, logarithmic, or exponential trend lines instead.
Practical Example: Ad Spend vs. Revenue
Suppose you plot monthly ad spend (X) against monthly revenue (Y) for the past 24 months. The scatter plot shows a positive correlation with R-squared = 0.78. The trend line equation is Revenue = 3.2 × AdSpend + 12,000. This tells you that, on average, every additional dollar of ad spend is associated with $3.20 in revenue—a useful input for budget planning.
Extending to Bubble Charts
A standard scatter plot encodes two variables (X and Y). A bubble chart adds a third variable by varying the size of each dot. For example, you could plot countries with GDP per capita on X, life expectancy on Y, and population as bubble size. This three-dimensional encoding makes bubble charts one of the richest single-chart visualizations available.
You can further encode a fourth variable using color—for instance, coloring bubbles by continent. ChartLoad supports both size and color encoding in its bubble chart maker.
Scatter Plot vs. Other Charts
Choosing the right chart matters. Here is how the scatter plot compares to similar options:
- Scatter plot vs. line chart: Line charts connect points in sequence and are best for time-series data. Scatter plots do not connect points and are best for exploring correlations between two non-time variables.
- Scatter plot vs. heatmap: When you have thousands of data points and the scatter plot becomes an unreadable blob, a heatmap bins the data into cells and uses color intensity to show density.
- Scatter plot vs. box plot: Box plots compare distributions across categories. Scatter plots compare two continuous variables.
- Scatter plot vs. violin plot: Violin plots show distribution shape. Scatter plots show individual data point positions.
Best Practices
- Label your axes with units (e.g., "Revenue (USD)" not just "Revenue").
- Start axes at zero when possible to avoid exaggerating relationships.
- Use transparency (alpha) when points overlap heavily so you can see density.
- Highlight outliers with a different color or annotation—they often tell the most interesting story.
- Limit categories. If coloring dots by category, keep it under seven groups to stay readable.
Create Your Scatter Plot Now
ChartLoad's free scatter plot maker lets you paste your data, add trend lines, customize colors, and export in seconds. No account needed. For more advanced analysis, explore the bubble chart, 3D scatter plot, or contour plot for density visualization. With 100+ chart types, ChartLoad is the only tool you need for data visualization.
Worked Example: Coffee Intake vs Sleep
A wellness team tracks 12 employees who logged their average daily caffeine (in mg) alongside their average nightly sleep (in hours) over one week. They want to know whether heavier coffee drinkers actually sleep less, before recommending an afternoon cut-off.
Sample data: Caffeine (mg), Sleep (hrs): 95,7.4 | 120,7.1 | 150,6.9 | 180,6.6 | 210,6.4 | 240,6.0 | 270,5.9 | 300,5.6 | 330,5.5 | 360,5.1 | 400,4.9 | 95,7.0
The points slope clearly downward (R-squared around 0.93), a strong negative correlation: every extra ~100 mg of caffeine lines up with roughly 0.7 fewer hours of sleep. The lone repeated 95 mg point at 7.0 hrs sits right on the trend, reinforcing it rather than acting as an outlier.
Frequently Asked Questions
How many data points do I need for a scatter plot?
Aim for at least 20 to 30 paired observations so a pattern can emerge; fewer than 10 makes any correlation look stronger or weaker than it really is. If you have thousands of points and they overlap into a blob, switch to a density heatmap or use transparency on the dots.
What's the difference between a scatter plot and a line graph?
A scatter plot leaves points unconnected to reveal the relationship between two independent variables, while a line graph connects points in order to show how one value changes over time. Use a scatter plot for correlation and a line graph for trends across a date or sequence.
How do I show a third variable on a scatter plot?
Encode it with dot size (turning the chart into a bubble chart) or with color. For example, plot price on X and rating on Y, then size each dot by units sold and color it by category — that packs four variables into one view without clutter.
Ready to Create Your Own Charts?
100+ chart types, 200+ templates, 9 export formats. 100% free, no signup.
Start Creating Now