specs_combine_plots: Combine the coefficient and control grid plots.

View source: R/specs_plots.R

specs_combine_plotsR Documentation

Combine the coefficient and control grid plots.

Description

specs_combine_plots produces the combined specification plot.

Usage

specs_combine_plots(
  coef_plot,
  control_plot,
  ncoefs,
  ratio = 2,
  control_spacing = NULL
)

Arguments

coef_plot

A ggplot2 plot: coefficient plot for the upper panel.

control_plot

A ggplot2 plot: control grid plot for the lower panel.

ncoefs

A numeric scalar indicating how many specifications there are.

ratio

A numeric scalar indicating the height ratio of the coefficient plot relative to the control grid plot.

control_spacing

A numeric scalar indicating how large the control geoms should be. For control_geom=="circle", this is the diameter of the circle. For control_geom=="rect", this is the width of the rectangle. Default to NULL and set to 0.75 if fewer than 40 specs and 1 otherwise.

Value

A ggplot2 object depicting the specification plot


ttecon/ttr documentation built on March 6, 2023, 7:36 a.m.