Plot Estimate Ridge Lines by Discrete Choice
Source:R/plot_rdf_ridges_by_dchoice.R
plot_rdf_ridges_by_dchoice.Rd
Visualizes the variance of an estimate conditional on a selected discrete choice.
Arguments
- df
The data frame as generated by
exhaust_design()
.- est
A character value to indicate the variable in
df
that contains the pont estimate that you want to plot.- dchoice
A character value to indicate the discrete choice that you want to partition your estimate ridgelines on.
- hist
Set to true if you want histogram ridges instead of densities. This is more informative about the exact range of coefficient but does not look as nice. Sets
stat = "binline"
in thegeom_density_ridges
call. Experiment with parameterscale < 1
to avoid overlapping histograms.- ...
Additional parameters that are being passed on to
geom_density_ridges
Examples
if (FALSE) {
print("Sorry. No examples yet.")
}