fx_default_fxGeom_class: Effex Functions: Default of the column 'fxGeom_class'

Description Usage Arguments Mechanism Examples

Description

fxGeom_class specifies the class of the fxGeom object which fx_ggplot() works on. fx_default_fxGeom_class infers the class according to the class of the corresponding column.

Usage

1
2
fx_default_fxGeom_class(data, mf = metaframe(fx_default(data)),
  custom_fun = default_identity)

Arguments

data

A data frame

mf

The metaframe. The metaframe of data is set as default.

custom_fun

A function which accepts the determined class and the name and returns the corrected class. Default is the identity.

Mechanism

Examples

1
2
3
4
5
6
7
df <- dplyr::tibble(
  Cont = 1:10,
  Disc = LETTERS[1:10],
  Disc2 = factor(LETTERS[1:10]),
  List = as.list(1:10)
)
fx_default_fxGeom_class(df)

sflippl/tectr documentation built on May 6, 2019, 8:51 a.m.