Use a line plot when you need to show how a continuous quantity changes over an ordered sequence, most often time. It is the right choice when the horizontal axis represents a progression—hours, days, months, years, distance, temperature, or steps in a process—and you want to reveal trends, cycles, or sudden shifts in a single series or a few comparable series.
What a Line Plot Is and Where It Comes From
A line plot (also called a line chart or line graph) connects data points with straight line segments. Each point represents a pair of values: one on the horizontal axis (often time) and one on the vertical axis (a measured quantity). The connecting lines imply continuity between observations, which is why line plots work best when the underlying variable is continuous or at least ordered.
The form has roots in the 18th century, when scientists began plotting barometric and temperature readings against time. William Playfair, a Scottish engineer and economist, popularized the line graph in his 1786 book The Commercial and Political Atlas, using it to show trade balances over years. Since then, the line plot has become one of the most common tools in statistics, science, finance, and everyday reporting.
Importantly, a line plot is not the same as a dot plot—a simple number line with stacked dots showing the frequency of values—even though some textbooks use the term “line plot” for that chart. In modern data visualization, “line plot” almost always means the connected-point chart described here.
When a Line Plot Is the Right Choice
The core criterion is an ordered horizontal axis. If the order of the x-values carries meaning—earlier to later, smaller to larger, start to finish—a line plot can reveal patterns that a bar chart or scatter plot would obscure.
Specific situations where a line plot excels:
- Tracking a single measure over time: monthly rainfall, daily website visits, annual population, hourly temperature.
- Comparing a few series: two or three products’ sales over the same months, or several cities’ temperatures across a year. More than about four or five lines usually becomes cluttered.
- Showing rates of change: the slope of the line directly shows how fast something is rising or falling.
- Highlighting cycles and seasonality: peaks and troughs at regular intervals stand out clearly.
- Displaying continuous functions: mathematical curves, dose–response relationships, or any smooth progression.
- Revealing outliers and breaks: a sudden spike or drop is visually obvious when points are connected.
Line plots also work for ordered categories that are not time—for example, age groups, income brackets, or stages of a chemical reaction—as long as the sequence is meaningful and evenly spaced.
When a Line Plot Is a Poor Fit
Line plots mislead when the horizontal axis is unordered or categorical. Connecting “apples,” “oranges,” and “bananas” with a line implies a progression that does not exist. For purely categorical comparisons, a bar chart is usually clearer and more honest.
Other cases to avoid a line plot:
- Too many series: more than about five lines on one plot becomes a tangle; consider small multiples (a grid of separate line plots) instead.
- Irregular time intervals: if data points are not evenly spaced in time, a standard line plot can distort the apparent rate of change. Either plot against actual time on a continuous axis or use a different chart.
- Parts of a whole: percentages that sum to 100% are better shown with a stacked area chart or a pie chart (for a few categories).
- Discrete counts with no order: frequencies of categories belong in bar charts or dot plots.
- Very few points: two or three points connected by a line can suggest a trend that is not statistically meaningful; a scatter plot or a table may be more honest.
A common misconception is that a line plot always shows a “trend.” In fact, it only shows the path between observed points; whether that path represents a real underlying trend depends on the data and the context.
How to Build a Clear Line Plot
Good line plots follow a few practical rules. They are not strict laws, but ignoring them often produces confusing charts.
- Put the ordered variable on the horizontal axis. Time almost always goes left to right.
- Start the vertical axis at zero when the values are counts or amounts and the differences are small relative to the total. For rates, percentages, or temperatures, a non-zero baseline can be acceptable if it is clearly labeled—but be aware that it exaggerates changes.
- Label both axes with units. “Revenue (USD millions)” is better than “Revenue.”
- Use distinct line styles or colors for multiple series, and include a legend. Avoid relying on color alone; add markers or dashes for accessibility.
- Mark data points when there are few observations, so readers can see where actual measurements lie.
- Keep the aspect ratio sensible. A very wide, short plot can make small changes look dramatic; a very tall, narrow plot can hide them.
- Avoid unnecessary decoration. Gridlines should be light; 3D effects and drop shadows add nothing.
If the data are noisy, consider adding a smoothed trend line (such as a moving average) alongside the raw line, but label it clearly so readers do not mistake it for the original data.
Line Plot vs. Other Chart Types
Choosing among chart types is mostly about the question you are asking.
- Bar chart: compares quantities across categories. Use it when the x-axis is not ordered or when you want to emphasize individual values rather than a continuous path.
- Scatter plot: shows the relationship between two continuous variables without implying order. Use it to check correlation or to display many points where a connecting line would be meaningless.
- Area chart: a line plot with the area below filled in. Useful for emphasizing magnitude or cumulative totals, but it can obscure multiple series.
- Histogram: shows the distribution of a single variable. It is not a line plot, even though the bars touch.
- Dot plot (frequency plot): stacks dots above values on a number line. Sometimes called a line plot in school materials, but it answers a different question—how often each value occurs.
In short: if the horizontal axis is a sequence and you care about change, a line plot is usually the first tool to reach for. If you care about comparison of separate categories, a bar chart is safer.
Common Mistakes and How to Spot Them
Even experienced analysts make these errors:
- Connecting across missing data. A gap in observations should be shown as a gap, not bridged with a straight line that implies data you do not have.
- Using a line plot for categorical data. If the x-axis labels are names, not numbers or dates, ask whether the order is real.
- Overplotting. Ten lines in ten similar colors is unreadable. Split into small multiples or highlight one series at a time.
- Truncated y-axis without warning. Starting the y-axis at a high value can turn a tiny change into a dramatic cliff. Label clearly and consider showing zero when in doubt.
- Implying precision. A smooth line through noisy points can suggest a certainty the data do not support.
These mistakes are easy to fix once you know to look for them. The most important check is simply: does the line imply an order or continuity that the data actually have?
Frequently Asked Questions
Can a line plot be used for non-time data?
Yes, as long as the horizontal axis is ordered—for example, temperature, dose, age, or distance. The key is that moving along the x-axis represents a meaningful progression, not just a list of categories.
How many lines can I put on one line plot?
There is no strict limit, but readability drops quickly. Two to four series are usually comfortable; beyond five, consider small multiples or highlighting one line at a time. The right number depends on the audience and the medium.
What is the difference between a line plot and a scatter plot?
A scatter plot shows individual points without connecting them, which is appropriate when the x-values are not ordered or when you want to see the raw relationship. A line plot connects points in order, emphasizing change and continuity.
Should the y-axis always start at zero?
Not always. For counts and amounts, starting at zero avoids exaggeration. For rates, percentages, or temperatures, a non-zero baseline can be acceptable if it is clearly labeled, but it will make changes look larger than they are in absolute terms.
Is a line plot the same as a dot plot?
No. In modern usage, a line plot connects data points with lines. A dot plot (sometimes called a line plot in school curricula) stacks dots above a number line to show frequency. They answer different questions.
Can I use a line plot for survey responses?
Only if the response categories are ordered (e.g., “strongly disagree” to “strongly agree”) and you are showing a trend across groups. For unordered categories, a bar chart is more appropriate.