plot_rdf_ridges_by_dchoice: Plot Estimate Ridge Lines by Discrete Choice

View source: R/plot_rdf_ridges_by_dchoice.R

plot_rdf_ridges_by_dchoiceR Documentation

Plot Estimate Ridge Lines by Discrete Choice

Description

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

Details

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

Value

A ggplot object containing the plot.

Examples

## Not run: 
  print("Sorry. No examples yet.")

## End(Not run)

joachim-gassen/rdfanalysis documentation built on Aug. 22, 2023, 5:29 p.m.