View source: R/dsldConfounders.R
dsldDensityByS | R Documentation |
Graphs densities of a response variable, grouped by a sensitive variable.
Similar to dsldConfounders
, but includes sliders to control the
bandwidth of the density estimate (analogous to controlling the bin
width in a histogram).
dsldDensityByS(data, cName, sName, graphType = "plotly", fill = FALSE)
data |
Datasetwith at least 1 numerical column and 1 factor column |
cName |
Possible confounding variable column, an R numeric |
sName |
Name of the sensitive variable column, an R factor |
graphType |
Type of graph created. Defaults to "plotly". |
fill |
To fill the graph. Defaults to "FALSE". |
No value; plot.
N. Matloff, T. Abdullah, A. Ashok, J. Tran
data(svcensus)
dsldDensityByS(svcensus, cName = "wageinc", sName = "educ")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.