categorical_panel: Panel Function for Metaplot Categorical Plot

View source: R/categorical.R

categorical_panelR Documentation

Panel Function for Metaplot Categorical Plot

Description

Default panel function for categorical_data_frame. Implements a simple mosaic plot. Global options are supported but typically are supplied by the calling function and may therefore be unreachable.

Usage

categorical_panel(
  x,
  y,
  groups,
  bivariate = TRUE,
  loc = metOption("loc_categorical_panel", 5),
  msg = metOption("msg_categorical_panel", "tilestats"),
  tex = metOption("tex_categorical_panel", 0.9),
  cex = metOption("cex_categorical_panel", 1),
  rot = metOption("rot_categorical_panel", c(90, 0)),
  subscripts,
  verbose = metOption("verbose_categorical_panel", FALSE),
  ...
)

Arguments

x

x values

y

y values

groups

optional grouping item

bivariate

whether to create y axis

loc

where to print statistics in a tile

msg

a function of x and y to print text in a tile

tex

tile expansion: scale factor for reducing each tile size relative to full size (<= 1)

cex

expansion for msg text

rot

rotation for axis labels; can be length 2 for y and x axes, respectively

subscripts

subscripts of the original data for this panel

verbose

generate messages describing process

...

passed to panel.superpose

See Also

tilestats

categorical.data.frame

Other panel functions: boxplot_panel(), corsplom_gg_correlation(), corsplom_gg_diagonal(), corsplom_gg_scatter(), corsplom_panel_correlation(), corsplom_panel_diagonal(), corsplom_panel_scatter(), dens_panel(), diag_label(), diag_pin(), iso_prepanel(), metaplot_key(), metaplot_ref(), panel.meta_densityplot(), panel_tile(), scatter_panel_ref(), scatter_panel()

Other categorical: categorical.data.frame(), categorical_data_frame(), categorical(), panel_tile()


bergsmat/metaplot documentation built on Feb. 21, 2024, 1:18 p.m.