hbrplot: Produce a glorious HBR style 2x2 plot

Description Usage Arguments Value Examples

View source: R/hbrplot.R

Description

Produce a glorious HBR style 2x2 plot

Usage

1
2
hbrplot(items = LETTERS[1:15], quadrants = c("one", "two", "three",
  "four"), x_labels = c(""), y_labels = c(""))

Arguments

items

A vector of items you want plotted. Typically a string vector.

quadrants

A vector of four quandrant names. You can give more than four, but anything after the fourth one is just ignored. Because, seriously.

x_labels

A vector of length two which will be coerced into the x axis label.

y_labels

A vector of length two which will be coerced into the y axis label.

Value

A ggplot2 figure that is in the style of a 2x2 plot.

Examples

1
2
3
4
hbrplot(items=c('me','you','Dog Named Boo','truck driver'),
        quadrants=c('love','pet','feed','neuter'),
        x_labels=c('fast','slow'),
        y_labels=c('sadly','happily'))

CerebralMastication/hbrplot documentation built on Dec. 26, 2021, 10:57 a.m.