add_text: Add text to shapes of a mosaic plot

Description Usage Arguments Value

Description

Add text to shapes of a mosaic plot

Usage

1
2
3
4
5
add_text(df, column = "shp", col = rep(par("fg"), nrow(df)), font = rep(1,
  nrow(df)), cex, ...)

add_labels(df, column = "shp", col = rep(par("fg"), nrow(df)),
  font = rep(1, nrow(df)), cex, ...)

Arguments

df

mosaic_df

column

(shp by default) name or position of a column in df to feed lines(). If a non-character column is provided, its names.

col

color (recycled) to feed text()

font

numeric (recycled) to feed text()

cex

numeric to feed text(), if missing tries to obtain something adequate

...

additional arguments to feed text()

Value

the mosaic_df, invisibly


vbonhomme/Momosaics documentation built on May 4, 2019, 10:56 a.m.