Skip to contents

This is the guide I give to anyone building charts on a Conclusive project. It covers the chart types we use most, in roughly the order you will need them. Each recipe says when to reach for it, shows code you can copy, and says plainly which parts come from maison and which are ordinary ggplot2. Most of a good client chart is ordinary ggplot2. maison sets the type, colors and geom defaults so you don’t have to.

All the data here is simulated. Each recipe sets its own seed, so you can run any one of them on its own after the setup chunk.

Setup

In a report or deck, load maison and call set_maison() once in the setup chunk. Every chart after that gets the house theme with no extra code, and you add theme_maison() only when a chart needs an argument, such as grid = "X".

New to maison? Start with vignette("maison"), which covers the setup, fonts, palettes, dark slides and transparent backgrounds.

The charts below end with theme_maison(base_family = "sans") so this page builds on machines without the house fonts. In my own work the base font is Adobe’s Aktiv Grotesk.

library(ggplot2)
library(maison)

red <- maison_colors[["red"]]
quiet <- maison_colors[["mauve"]]
small <- 9 / .pt
months <- seq(as.Date("2024-01-01"), by = "month", length.out = 36)

red is the highlight, quiet is for annotation text, and small is the 9 pt size I use for annotations.

House rules

These hold for every chart, whatever the type.

  • The title is the finding. “Denver is the most satisfied market”, not “Satisfaction by market”. The subtitle says what was measured and in what units. With both in place, axis titles are usually redundant, so set x = NULL, y = NULL.
  • One highlight color, used once. Red marks the one thing you want the client to see. Everything else is plum, olive or gray. If two things compete for red, the chart is making two points; make two charts.
  • Flush left. Titles, legends, facet titles and category labels all start at the left edge. The theme handles titles and legends. Category labels on horizontal bars need theme(axis.text.y = element_text(hjust = 0)).
  • Label the data, not a legend. Put the value on the bar and the name at the end of the line. A legend makes the reader look away and back.
  • No colored backgrounds. Clients print decks and paste charts onto their own slides. The theme still draws on warm white, which you can’t see on this page; that changes in the next release. Until then, use set_maison(background = "transparent") in decks.
  • Gridlines only along the value axis. Vertical bars and lines over time take the default grid = "Y". Horizontal bars take grid = "X". If every bar carries its value, drop the grid and the axis.
  • No pie charts. A donut, rarely, for a single share.

Comparing items

Ranked bars with one highlight

Use it when you rank markets, brands, segments or attributes on one measure. This is the chart I use most. Sort the bars, put the client’s answer in red, and print the value on each bar so the axis can go.

markets <- data.frame(
  market = c("Austin", "Boston", "Chicago", "Denver", "Seattle", "Miami", "Phoenix", "Atlanta"),
  score = c(71, 64, 58, 77, 69, 52, 61, 66)
)
markets$market <- reorder(markets$market, markets$score)

ggplot(markets, aes(score, market, fill = market)) +
  geom_col(width = 0.7, show.legend = FALSE) +
  geom_text(
    aes(label = score, colour = after_scale(maison_label_color(fill))),
    hjust = 1.4, fontface = "bold"
  ) +
  scale_fill_manual(values = maison_highlight(markets$market, "Denver", base = "olive")) +
  scale_x_continuous(breaks = NULL, expand = c(0, 0)) +
  labs(
    title = "Denver is the most satisfied market",
    subtitle = "Satisfaction score, 0 to 100",
    x = NULL, y = NULL
  ) +
  theme_maison(base_family = "sans", grid = "") +
  theme(axis.text.y = element_text(hjust = 0))

maison vs ggplot2: maison_highlight() builds the red-and-olive color vector, and maison_label_color() picks dark or light text for each bar. The sorting, the labels and the dropped axis are plain ggplot2. maison_label_color() goes inside after_scale() so it sees the fill the scale chose.

Before and after (dumbbell)

Use it when the same items were measured twice: pre and post campaign, last wave and this wave, two segments. Each row shows where an item started and where it ended. The hollow dot is before, the solid dot is after, and the row that matters gets the red dot.

attributes <- data.frame(
  attribute = c("Trustworthy", "Good value", "Easy to use", "Innovative", "For people like me"),
  before = c(48, 55, 61, 33, 41),
  after = c(63, 58, 72, 51, 44)
)
attributes$attribute <- reorder(attributes$attribute, attributes$after)
top <- attributes[attributes$attribute == "Innovative", ]

ggplot(attributes, aes(y = attribute)) +
  geom_segment(aes(x = before, xend = after)) +
  geom_point(aes(x = before), shape = 21, size = 3, fill = maison_colors[["warm_white"]]) +
  geom_point(aes(x = after), size = 3) +
  geom_point(aes(x = after), data = top, size = 3, colour = red) +
  labs(
    title = "Innovation moved the most",
    subtitle = "Percent agreeing, before (hollow) and after (solid) the campaign",
    x = NULL, y = NULL
  ) +
  theme_maison(base_family = "sans", grid = "X") +
  theme(axis.text.y = element_text(hjust = 0))

maison vs ggplot2: the theme gives segments and points the same plum, so the three layers match with no color arguments. Everything else is ggplot2.

Concept test (boxplot)

Use it when you report a concept or message test to a client who wants to see the spread, not just the winner. Most senior clients want the recommendation, so I save this for the analytics team and the appendix. Light boxes show the spread, faint points show every answer, and a large dot with a label marks the mean.

set.seed(1127)
concepts <- data.frame(
  concept = rep(paste("Concept", LETTERS[4:1]), each = 60),
  score = rnorm(240, mean = rep(c(4.6, 5.4, 6.1, 6.9), each = 60), sd = 1.5)
)
concepts$score <- pmin(pmax(concepts$score, 0), 10)
concepts$concept <- factor(concepts$concept, levels = paste("Concept", LETTERS[4:1]))
means <- aggregate(score ~ concept, concepts, mean)

ggplot(concepts, aes(score, concept)) +
  geom_boxplot(outliers = FALSE, width = 0.45) +
  geom_point(
    position = position_jitter(width = 0, height = 0.12, seed = 1),
    size = 1, alpha = 0.25
  ) +
  geom_point(data = means, size = 4) +
  geom_label(
    aes(label = sprintf("%.1f", score)),
    data = means, fontface = "bold", size = small,
    position = position_nudge(y = 0.4)
  ) +
  scale_x_continuous(limits = c(0, 10), breaks = seq(0, 10, 2)) +
  labs(
    title = "Concept A leads on appeal",
    subtitle = "Appeal, 0 to 10. The dot is the mean.",
    x = NULL, y = NULL
  ) +
  theme_maison(base_family = "sans", grid = "X") +
  theme(axis.text.y = element_text(face = "bold", hjust = 0))

maison vs ggplot2: the box fill and outline, the point color and the label style come from the theme. outliers = FALSE is a layer setting a theme can’t reach, so you always pass it.

Survey scales

Likert stack

Use it when you report agreement, satisfaction or any ordered scale across several statements. Keep the statements in the order the client cares about, not sorted by score, unless the point is the ranking.

answers <- c("Strongly disagree", "Disagree", "Neither", "Agree", "Strongly agree")
survey <- data.frame(
  item = rep(c("Easy to use", "Good value", "Would recommend"), each = 5),
  answer = factor(rep(answers, 3), levels = answers, ordered = TRUE),
  share = c(4, 10, 16, 42, 28, 9, 18, 25, 33, 15, 6, 9, 20, 35, 30)
)

p_likert <- ggplot(survey, aes(share, item, fill = answer)) +
  geom_col(position = position_stack(reverse = TRUE)) +
  geom_text(
    aes(label = share, colour = after_scale(maison_label_color(fill))),
    position = position_stack(vjust = 0.5, reverse = TRUE), size = small
  ) +
  scale_x_continuous(breaks = NULL, expand = c(0, 0)) +
  labs(title = "Most agree it is easy to use", subtitle = "Percent of respondents", x = NULL, y = NULL) +
  theme_maison(
    base_family = "sans", grid = "", legend_location = "panel",
    plot_margin = margin(r = 12)
  ) +
  theme(axis.text.y = element_text(hjust = 0))

p_likert + scale_fill_maison_likert()

When neither end of the scale is good or bad, such as “prefer A” against “prefer B”, use the "quiet" palette so the colors don’t pass judgment.

p_likert + scale_fill_maison_likert("quiet")

maison vs ggplot2: the rust-to-green and quiet palettes are maison, and you always need scale_fill_maison_likert() because ggplot2 doesn’t apply theme palettes to ordered factors. legend_location = "panel" starts the legend where the bars start. The stacking and labels are ggplot2.

Brand image grid (heatmap)

Use it when you show how strongly each brand is linked to each attribute, the grid that comes out of a brand association question. Darker means more strongly linked. Print the number in every cell; clients read the numbers, not the shading.

image <- expand.grid(
  attribute = c("Trusted", "Good value", "Modern", "Friendly", "For me"),
  brand = paste("Brand", LETTERS[4:1])
)
image$share <- c(
  29, 55, 31, 33, 50, # Brand D
  44, 47, 58, 39, 36, # Brand C
  52, 61, 35, 48, 41, # Brand B
  71, 38, 22, 45, 30  # Brand A
)

ggplot(image, aes(attribute, brand, fill = share)) +
  geom_tile(colour = maison_colors[["warm_white"]], linewidth = 1) +
  geom_text(aes(label = share, colour = after_scale(maison_label_color(fill)))) +
  scale_x_discrete(position = "top", expand = c(0, 0)) +
  scale_y_discrete(expand = c(0, 0)) +
  labs(
    title = "Brand A owns trust",
    subtitle = "Percent who link each attribute to each brand",
    x = NULL, y = NULL
  ) +
  theme_maison(base_family = "sans", grid = "", legend_position = "none") +
  theme(axis.text.y = element_text(hjust = 0))

maison vs ggplot2: the purple ramp is the theme’s default for a continuous fill, so there is no scale call; scale_fill_maison_c() swaps in another ramp. The cell text color is maison_label_color() again.

Change over time

Tracking waves (dot timeline)

Use it when the data comes in waves: a quarterly tracker, an annual study. Each dot is a wave of fieldwork, so the reader can see there is no data between them. We use these a lot. They have to register on a small screen, so the line is thick and a shade lighter than the dots. Circle the moments that matter with a hollow red ring and label them in red.

set.seed(1127)
quarters <- data.frame(quarter = seq(as.Date("2022-01-01"), by = "quarter", length.out = 16))
quarters$launch <- 1:16 %in% c(5, 11)
quarters$share <- 18 + cumsum(rnorm(16, sd = 0.4)) + 2.5 * (1:16 > 5) + 2.5 * (1:16 > 11)
launches <- quarters[quarters$launch, ]

ggplot(quarters, aes(quarter, share)) +
  geom_line(linewidth = 1.25, alpha = 0.6) +
  geom_point(size = 3.75) +
  geom_point(data = launches, shape = 21, size = 6, stroke = 1, colour = red) +
  geom_text(aes(label = "Launch"), data = launches, vjust = 2.8, size = small, colour = red) +
  scale_y_continuous(expand = expansion(mult = c(0.15, 0.05))) +
  labs(
    title = "Share steps up after each launch",
    subtitle = "Market share by quarter, percent",
    x = NULL, y = NULL
  ) +
  theme_maison(base_family = "sans")

maison vs ggplot2: the line and dot weights are my values, set on the layers so the chart looks the same whatever the package defaults are. The theme supplies the plum.

Monthly series with events

Use it when the data is continuous, such as monthly sales or a daily social metric, and the story is about what happened when. Keep the raw points faint, let a smoothed line carry the story, and mark events with a rule and periods with a shaded band. Label each line at its end.

set.seed(1127)
tracker <- data.frame(month = months, t = 1:36)
tracker$index <- 52 + 0.35 * tracker$t + 4 * sin(tracker$t / 4) + rnorm(36, sd = 2)
tracker$smooth <- fitted(loess(index ~ t, tracker, span = 0.5))
tracker$trend <- fitted(lm(index ~ t, tracker))
last <- tracker[36, ]

ggplot(tracker, aes(month, index)) +
  annotate(
    "rect",
    xmin = as.Date("2025-03-01"), xmax = as.Date("2025-08-01"),
    ymin = -Inf, ymax = Inf
  ) +
  annotate(
    "text", x = as.Date("2025-03-15"), y = 72, label = "Campaign",
    hjust = 0, size = small, colour = quiet
  ) +
  geom_vline(xintercept = as.Date("2024-09-01")) +
  annotate(
    "text", x = as.Date("2024-09-15"), y = 72, label = "Relaunch",
    hjust = 0, size = small, colour = quiet
  ) +
  geom_point(size = 1.5, alpha = 0.35) +
  geom_line(aes(y = trend), linetype = "dashed", linewidth = 0.5, colour = quiet) +
  geom_line(aes(y = smooth), linewidth = 0.9) +
  annotate(
    "text", x = last$month + 20, y = c(last$smooth, last$trend),
    label = c("Smoothed", "Trend"), hjust = 0, size = small,
    colour = c(maison_colors[["plum"]], quiet)
  ) +
  scale_x_date(date_labels = "%Y", date_breaks = "1 year") +
  coord_cartesian(clip = "off") +
  labs(title = "Awareness ends the period at its high", subtitle = "Monthly index", x = NULL, y = NULL) +
  theme_maison(base_family = "sans", plot_margin = margin(r = 55))

maison vs ggplot2: the theme styles geom_vline() as a thin dashed gray rule and annotate("rect") as a light gray band with no outline, so neither needs arguments. The labels, smoothing and end-of-line text are ggplot2. clip = "off" and the right margin make room for the line labels. Keep the raw points small and the dashed trend thin, so neither outweighs the line that carries the story.

Small multiples

Use it when you compare the same measure across regions, brands or segments over time. One panel each, on a shared scale. Put the headline number for each panel right under its title, so the reader gets each panel’s takeaway before reading the line.

set.seed(1127)
regions <- expand.grid(t = 1:24, region = c("North", "South", "East", "West"))
regions$score <- 60 + c(0.5, -0.2, 0.2, 0)[regions$region] * regions$t +
  3 * sin(regions$t / 3 + as.integer(regions$region)) + rnorm(96, sd = 1)
first <- regions$score[regions$t == 1]
latest <- regions$score[regions$t == 24]
stats <- data.frame(
  region = factor(levels(regions$region), levels = levels(regions$region)),
  label = sprintf("Now %.0f, %+.0f since launch", latest, round(latest - first) + 0)
)

ggplot(regions, aes(t, score)) +
  geom_line() +
  geom_text(
    aes(x = -Inf, y = Inf, label = label),
    data = stats, hjust = 0, vjust = 1, size = small, colour = red
  ) +
  facet_wrap(~region, nrow = 1) +
  scale_x_continuous(breaks = c(6, 12, 18)) +
  scale_y_continuous(limits = c(50, 85), breaks = seq(50, 80, 10)) +
  labs(
    title = "The North pulls away",
    subtitle = "Satisfaction by month since launch",
    x = NULL, y = NULL
  ) +
  theme_maison(
    base_family = "sans", axis_text_size = 8,
    panel_spacing = grid::unit(1, "lines")
  ) +
  theme(
    strip.text = element_text(margin = margin(l = 0, b = 4)),
    axis.text = element_text(face = "bold")
  )

maison vs ggplot2: the theme sets facet titles in plain text with no gray boxes, and panel_spacing sets the gap. The strip.text margin pulls the titles flush left. The stats line is a geom_text() at x = -Inf, y = Inf, which pins it to the top left of every panel.

Benchmark zones

Use it when a score has known thresholds, such as brand health or NPS, and the client’s real question is “is this good?” Shade the ranges behind the line and put the y-axis breaks at the thresholds.

zones <- data.frame(
  zone = factor(c("Weak", "Fair", "Strong"), levels = c("Weak", "Fair", "Strong")),
  ymin = c(0, 30, 50), ymax = c(30, 50, 80)
)
set.seed(1127)
health <- data.frame(month = months)
health$score <- 28 + 1.1 * seq_along(months) + rnorm(36, sd = 3)

ggplot(health) +
  geom_rect(
    aes(xmin = min(months), xmax = max(months), ymin = ymin, ymax = ymax, fill = zone),
    data = zones, alpha = 0.3, show.legend = FALSE
  ) +
  geom_text(
    aes(x = min(months) + 15, y = ymax - 3, label = zone),
    data = zones, hjust = 0, vjust = 1, size = small
  ) +
  geom_line(aes(month, score), linewidth = 0.9) +
  scale_fill_manual(values = maison_pal("seq_gray")(7)[2:4]) +
  scale_x_date(date_labels = "%Y", date_breaks = "1 year", expand = c(0, 0)) +
  scale_y_continuous(breaks = c(30, 50), expand = c(0, 0)) +
  labs(
    title = "From weak to strong in three years",
    subtitle = "Brand health score",
    x = NULL, y = NULL
  ) +
  theme_maison(base_family = "sans", grid = "", axis_text_size = 8, plot_margin = margin(r = 12)) +
  theme(axis.text = element_text(face = "bold"), axis.text.x = element_text(hjust = 0))

maison vs ggplot2: this one is almost all ggplot2. maison supplies the gray ramp, maison_pal("seq_gray"). The alpha is on the layer because a theme can’t make a mapped fill translucent.

Relationships

Brand map (bubble scatter)

Use it when you place brands or products on two measures at once, with a third as bubble size. Put the client’s brand in red, and add a reference line where the meaning changes, here zero change.

brands <- data.frame(
  brand = paste("Brand", LETTERS[1:10]),
  awareness = c(22, 30, 38, 45, 52, 58, 64, 70, 77, 84),
  change = c(3.1, 1.2, 2.6, 0.8, -0.4, 1.5, -1.6, -0.9, -2.8, -2.1),
  buyers = c(8, 15, 12, 24, 30, 18, 40, 28, 52, 45)
)
brands$client <- brands$brand == "Brand I"

ggplot(brands, aes(awareness, change)) +
  geom_hline(yintercept = 0) +
  geom_point(aes(size = buyers, colour = client), alpha = 0.7, show.legend = FALSE) +
  ggrepel::geom_text_repel(
    aes(label = brand),
    family = "sans", colour = maison_colors[["ink"]], size = small,
    box.padding = 0.5, point.padding = 12, min.segment.length = 0.3, seed = 1
  ) +
  scale_colour_manual(values = c(`FALSE` = maison_colors[["plum"]], `TRUE` = red)) +
  scale_size_area(max_size = 10) +
  labs(
    title = "The best-known brands are losing share",
    subtitle = "Bubble size is the number of buyers. Brand I is the client.",
    x = "Awareness, percent", y = "Change in share, points"
  ) +
  theme_maison(base_family = "sans", grid = "XY")

maison vs ggplot2: the theme styles the zero line and the axis titles. ggrepel ignores theme defaults, so its layer must be given the font family, color and size by hand. In a report, pass the family you gave set_maison().

A single share

Donut

Use it when one share is the whole message and the slide has room for a big number. Never for more than two or three slices; use bars instead. No pie charts.

intent <- data.frame(
  answer = factor(c("Likely", "Not likely"), levels = c("Likely", "Not likely")),
  share = c(73, 27)
)

ggplot(intent, aes(2, share, fill = answer)) +
  geom_col(width = 1, position = position_stack(reverse = TRUE), show.legend = FALSE) +
  annotate("text", x = 0.5, y = 0, label = "73%", size = 28 / .pt, fontface = "bold") +
  scale_fill_manual(values = c(red, maison_pal("seq_gray")(7)[3])) +
  coord_polar(theta = "y") +
  xlim(0.5, 2.5) +
  labs(title = "Three in four would buy", subtitle = "Purchase intent, percent") +
  theme_maison(base_family = "sans", void = TRUE)

maison vs ggplot2: void = TRUE drops the axes and grid and keeps the house type for the title. The hole, the center number and the two colors are ggplot2.