View source: R/plot_conditional_distribution.R
plot_conditional_distribution | R Documentation |
A visualization showing values from the eda_var
separated in two
sets based on the target_var
. A histogram format chosen to
accommodate discontinuities in data. The number of bins is determined based
on the data in eda_var
. Conditional views of histograms will
involve different binwidths. This compromise was made in recognition of the
need to see a more accurate view of the distribuion rather than attempt to
compare counts at a given position on the x-axis. The default
confidence_level
was chosen at 0.01 to address concerns of multiple
search. A more supportable value should be considered based on the data.
plot_conditional_distribution( df, eda_var = NULL, target_var = NULL, confidence_level = 0.99, width = 300, height = 450 )
df |
data frame |
eda_var |
character |
target_var |
character name of column for conditional analysis |
confidence_level |
numeric confidence level |
width |
numeric width of plot in pixels |
height |
numeric height of plot in pixels |
NULL. Function called for side effect of rendering exploratory data anlysis visualization
# plot_conditional_distribution()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.