density.gg: Plot Density Curves

Description Usage Arguments Details

Description

Plot multiple density curves from different datasets. This function was primarily built to compare the output distribution of a model across train, test and live datasets.

Usage

1
density.gg(measure = "p_", df_train = ds1, df_test = ds2, df_live = dsl, xlim = NULL, ylim = NULL)

Arguments

measure

The variable to be plotted, such as Propensity.

df_train

Train data.

df_test

Test data.

df_live

Live data.

xlim

The limits for the x-axis. By default this is automatic.

ylim

The limits for the y-axis. By default this is automatic.

Details

Note that df_train, df_test, and live can be replaced by any other desired dataset. The only condition is that the measure variable needs to have the same name across all datasets.


Ehsan-F/R-Mixtape documentation built on June 24, 2020, 12:22 a.m.