Skip to contents

A treemap where each tile is a comment sized by length – the quote slide of a survey deck. Requires the suggested treemapify package.

Usage

plot_quotes_tree(data, label = comment, area = length, colour = "black")

Arguments

data

A data frame of quotes, e.g. from sample_comments().

label

Text column (unquoted). Defaults to comment.

area

Tile-size column (unquoted). Defaults to length.

colour

Tile border colour. Defaults to "black".

Value

A ggplot object.

Details

Lays selected verbatims out as a treemap, each tile sized by comment length, so a slide can show real customer voice at a glance. Pair it with sample_comments() or sample_comments_diverse(), which produce the comment/length columns it expects. Requires the suggested treemapify package.

Examples

sample_comments(podracing_survey, nps_com, show_com, n = 5) %>%
  plot_quotes_tree()