util.profile.cat: stacked bar plot for single categorical variable

Description Usage Arguments Value Examples

View source: R/utils-plot.R

Description

profile the numeric variable by segment, used for segment profiling

Usage

1
util.profile.cat(data, x, segment = "segment", alpha = 0.8)

Arguments

data

input data.frame

x

char, categorical variable name

segment

variable name of the segment

alpha

float density plot transparency

Value

list(data, plot)

Examples

1
2
3
res <- util.profile.cat(mtcars, x = 'am', segment = 'gear')
res$data
res$plot

6chaoran/lh2util documentation built on Nov. 29, 2020, 1:28 a.m.