Skip to contents

Visualizes the variance of an estimate conditional on a selected discrete choice.

Usage

plot_rdf_ridges_by_dchoice(df, est, dchoice, hist = FALSE, ...)

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 the geom_density_ridges call. Experiment with parameter scale < 1 to avoid overlapping histograms.

...

Additional parameters that are being passed on to geom_density_ridges

Value

A ggplot object containing the plot.

Details

See the vignette of the package for further details on how to implement the RDF workflow.

Examples

if (FALSE) {
  print("Sorry. No examples yet.")
}