View source: R/dsldConfounders.R
dsldConfounders | R Documentation |
Plots estimated densities of all continuous features X, conditioned on a specified categorical feature C.
dsldConfounders(data, sName, graphType = "plotly", fill = FALSE)
data |
Dataframe, at least 2 columns. |
sName |
Name of the categorical column, an R factor. In discrimination contexts, Typically a sensitive variable. |
graphType |
Either "plot" or "plotly", for static or interactive graphs. The latter requires the plotly package. |
fill |
Only applicable to graphType = "plot" case. Setting to true will color each line down to the x-axis. |
No value; plot.
N. Matloff, T. Abdullah, A. Ashok, J. Tran
data(svcensus)
dsldConfounders(svcensus, "educ")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.