bc_mosaic: Mosaic plot

Description Usage Arguments

View source: R/bc_mosaic.R

Description

Creates a mosaic plot showing rectangular segments sized by both height and width parameters.

Usage

1
2
3
bc_mosaic(.data, x.group, y.group, values, fill.values = NULL,
  segment.label = "value", segment.format = NULL,
  total.label = FALSE, total.format = "%0.0f")

Arguments

.data

The data frame or tibble containing your data

x.group

The column name used to label segments on the x-axis

y.group

The column name used to label segments on the y-axis

values

The column name showing the value to use to determine the size of the segments

fill.values

Fill colors to use for y.group.

segment.label

For each segment, show 'value', 'percent', or 'none'? Default is 'value'.

segment.format

Format to use to display segment values as a text string. Uses 'sprintf()'.

total.label

Show the total for each x.group? Default is 'FALSE'.

total.format

Format to use to display totals as a text string. Uses 'sprintf()'.


Prometheus77/bcgg documentation built on Oct. 16, 2019, 12:09 a.m.