Lompat ke konten

Pelajaran 22 ยท From Findings to Reports

Charts That Communicate Findings

Turn quick exploratory plots into clear explanatory charts: pick the chart for the question, write a takeaway title, label units and design for access.

Exploratory charts are for you. You make many, quickly, and most are thrown away. Explanatory charts are for other people. There are only a few, and each one must make a point clearly and honestly. Moving from one to the other takes deliberate work.

Match the chart to the question

Question Good starting chart
How are values distributed? Histogram, box plot, ECDF
How do categories compare? Sorted bar chart or dot plot
How did something change over time? Line chart
How are two numbers related? Scatter plot
What is the composition? Stacked or grouped bars
How do many pairs compare? Heatmap

For more options, read choosing a chart.

One chart, one message

Decide what the reader should notice. Then remove what does not help and highlight what does. A takeaway title states the finding: "North deliveries take longest" rather than "Delivery time by region". Make sure the data supports every word of the title.

Python From default chart to explained chart

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Gray bars give context and one color draws the eye. The labels include n, and the axis starts at zero. The title and x label name the statistic, the unit, the nature of the data and the period.

Honest scales

  • Bars encode value by length, so they start at zero.
  • Lines and scatter plots encode position, so the axis need not start at zero, but label it clearly and avoid exaggerating tiny changes.
  • Panels that readers compare should share scales, or say clearly that they do not.
  • Dual y-axes are easy to misread; two stacked panels are usually safer.
  • Log scales must be labeled, and explained if your audience is not used to them.

Show uncertainty and gaps

If values are estimates from samples, show intervals or at least sample sizes, and say what an interval represents (a confidence interval, an IQR and a standard deviation are different things). Break a line where data is missing instead of silently joining across the gap. Mark incomplete periods, for example with a dashed line.

Python Mark a partial period

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Without the note, a viewer would see a crash.

Make charts accessible

Design for every reader

Not color alone Add labels or shapes
Readable text Large enough to read
Contrast Clear against background
Text version Describe the takeaway
1 / 2

Many people cannot tell some color pairs apart, such as certain reds and greens. Use labels, line styles or positions in addition to color. Add alt text that states the main finding, and offer the numbers in a table when readers may need exact values.

Tables work too

When there are few values, a small table can beat a chart. Align numbers to the right, use consistent decimals, add units to headings, sort meaningfully and include counts.

Python A compact results table

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The "all orders" median of 32 here is a given invented figure. In your own work, compute it from the rows. You cannot get an overall median by averaging group medians.

Export and review

Save figures with enough resolution, for example fig.savefig("chart.png", dpi=200, bbox_inches="tight"). Vector formats such as SVG stay sharp when resized. Then show the chart to someone without explaining it. Ask what they think it says. If their answer differs from your message, revise the chart.

Do not publish charts that expose personal or confidential details, such as a labeled point that identifies one person. Aggregate or remove such details first.

A revision routine

Take one chart through these steps:

  1. Write the message in one sentence.
  2. Choose the chart type that shows that comparison most directly.
  3. Sort and label, with units, period and sample size.
  4. Remove decoration, extra grid lines and unused colors.
  5. Add the one highlight that guides the eye.
  6. Check what a reader could misunderstand, and fix it.

If the sentence from step 1 needs the word "and" several times, you may need two charts.

Try it yourself

Take the partial-period chart and remove the dashed line and the legend note. Describe what a new reader would conclude. Then design a second honest version that plots average orders per day for each week, so the short week can be compared directly. Mention in the title or caption that week 6 has only three days, because three days may not represent a full week.

Choose the comparison before the style

Ask what the reader should compare, and put those values close together on a shared scale. To compare regions within each month, place the regions side by side. To follow each region over months, a line per region works better. If there are too many lines to read, draw small panels with identical scales, one per region. Colors should keep the same meaning in every chart of the report, so that readers do not have to learn a new key each time.

A common mistake

Do not keep the default axis names from your code, such as amt_2 or value_sum. Write what the reader needs: the quantity, its unit and, where it matters, whether it is a total, an average or a median.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. How do exploratory and explanatory charts differ?

    Their audiences and goals differ, so their design differs too.
  2. 2. Which chart element should start at zero?

    Cutting a bar axis distorts the visual comparison of lengths.
  3. 3. A line chart's last week contains only three days. What should you do?

    Readers must not mistake incomplete data for a drop.
  4. 4. Why not rely on color alone?

    A second cue keeps the information available to more people.

Summary

  • Explore widely, then explain with a few purposeful charts.
  • Match chart type to question and give each chart one supported message.
  • Use honest scales, label units and periods, and show sample sizes.
  • Mark gaps, partial periods and uncertainty.
  • Design for accessibility and protect sensitive details.

Next: Writing an EDA Report

Progres Anda disimpan di browser ini. Tidak perlu akun.