specs_plot | R Documentation |
specs_plot
produces the specification plot with 2 panels: coefficient and control grid.
specs_plot( coefs, palette = "green", ratio = 2, coef_ylabel = "Coefficient estimate", coef_ylim = NULL, coef_xlabel = NULL, label_text_size = NULL, point_size = NULL, error_alpha = NULL, error_geom = NULL, error_width = 0, hline = NULL, control_geom = "rect", control_spacing = NULL, control_text_size = 9, trim_top = 0, ... )
coefs |
A dataframe with the following components:
names of indicators for specs, |
palette |
Change the palette.
Default to |
ratio |
A numeric scalar indicating the height ratio of the coefficient plot relative to the control grid plot. |
coef_ylabel |
A string specifying the y-axis label on the coefficient panel.
Default to |
coef_ylim |
A numeric vector of length two indicating the
minimum and maximum values of the y-axis in the coefficient plot.
Default to |
coef_xlabel |
A string specifying the x-axis label on the coefficient panel.
Default to |
label_text_size |
A numeric scalar indicating how large the text for the
axis labels should be.
Default to |
point_size |
A numeric scalar indicating the size of the coefficient estimate points.
Default to |
error_alpha |
A numeric scalar indicating the alpha of the error geom.
Default to |
error_geom |
A string indicating the type of geom that should be used to
depict confidence intervals on coefficient estimates.
Currently supported are |
error_width |
A numeric scalar indicating the width of the error bar.
Default to 0 and only applicable when |
hline |
A numeric scalar indicating a horizontal line at value |
control_geom |
A string indicating the geom that should be used to
indicate the presence of controls.
Currently supported are |
control_spacing |
A numeric scalar indicating how large the control geoms
should be.
For |
control_text_size |
A numeric scalar indicating how large the control name text should be. Default to 9. |
trim_top |
A numeric scalar indicating how close the bottom panel
(displaying presence of controls) should be to the
top panel (displaying presence of coefficients).
Useful when dealing with large CIs.
Default to |
... |
Other arguments passed to |
A list of 3 ggplot2
objects, coef_plot
depicting the coefficient plot,
control_plot
depicting the control panel, and spec_plot
depicting the
specification plot with both coefficient and control panels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.