util.profile.num: density plot for single numeric variable

Description Usage Arguments Value Examples

View source: R/utils-plot.R

Description

profile the numeric variable colored by segment, used for segment profiling

Usage

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

Arguments

data

input data.frame

x

numeric variable for profiling

segment

variable name of the segment

alpha

float density plot transparency

scale

float scale of density plot

Value

list(data.frame, plot)

Examples

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

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