stem_leaf_display: Function is a wrapper around aplpack::stem.leaf that provides...

View source: R/stem_leaf_display.R

stem_leaf_displayR Documentation

Function is a wrapper around aplpack::stem.leaf that provides one or more stem and leaf display(s).

Description

Function accepts a named list of numeric vectors from which stem and leaf displays are provided.

Usage

stem_leaf_display(
  x,
  unit = 1,
  m = 1,
  min_val = NULL,
  max_val = NULL,
  outliers = TRUE,
  depths = FALSE,
  col_width = 4,
  row_height = 0.5,
  font_sz = 11,
  heading_color = "black",
  display_grob = TRUE
)

Arguments

x

The named list of numeric vectors from which stem and leaf displays are provided.

unit

Leaf unit, as a power of 10 (e.g. 100, 0.01). The default is 1.

m

Number of parts (1, 2, 5) into which each stem will be separated. The default is 1.

min_val

Optional numeric that sets the smallest non-outlying value.

max_val

Optional numeric that sets the largest non-outlying value.

outliers

A logical which if TRUE (the default), outliers are placed on LO and HI stems

depths

A logical which if TRUE (the default), print a column of "depths" to the left of the stems

col_width

A numeric that sets the display column widths in cm. The default is 4, which works when depths is FALSE. You may need to increase this value to avoid cutting off wide leaf values.

row_height

A numeric that sets the display row height in cm. The default is 0.5. You may need to decrease this value for smaller font sizes and longer stem values.

font_sz

A numeric that sets the display's font size. The default is 11.

heading_color

A string that sets the heading's color in name or hex. The default is "black".

display_grob

A logical that if TRUE (the default) will display the TableGrob.

Value

A TableGrob object if display_grob is FALSE.

Author(s)

Rick Dean


deandevl/RplotterPkg documentation built on Feb. 1, 2024, 8:02 p.m.