View source: R/plot_rdf_spec_curve.R
plot_rdf_spec_curve | R Documentation |
Visualizes a result estimate across your researcher degrees of freedom by plotting its specification curve as introduced by Simonsohn, Simmons and Nelson.
plot_rdf_spec_curve(
ests,
est,
lb = "",
ub = "",
sample_frac = 1,
est_label = est,
title = "",
est_color = "black",
est_color_signeg = "#E41A1C",
est_color_sigpos = "#377EB8",
line_color = "black",
ribbon = nrow(ests) > 30,
ribbon_color = "gray90",
choice_ind_point = TRUE,
pt_size = 0.1,
lower_to_upper = 3,
highlight = NULL,
pt_size_highlight = 3,
addon_sc = NULL,
addon_dc = NULL,
file = NULL,
...
)
ests |
The data frame provided by |
est |
A character string indicating the estimate that you want to plot. |
lb |
A character string indicating the lower bound of the estimate. |
ub |
A character string indicating the upper bound of the estimate.
If both |
sample_frac |
The percentage of the protocols that should be plottted. If your design produces many degrees of freedom, sampling speeds up plotting time and makes the plot less clutered. |
est_label |
Y-Axis label for the specification curve. Defaults to
|
title |
A title for the plot |
est_color |
Color of estimates points for specification curve |
est_color_signeg |
Color of significantly negative estimates. |
est_color_sigpos |
Color of significantly positive estimates. |
line_color |
Color of confidence interval lines (only used when
|
ribbon |
If TRUE a ribbon displaying the confidence interval is being
plotted. If FALSE, lines are printed instead (looks nicer if you have only
few degrees of freedom to plot) (only used when |
ribbon_color |
Color of the confidence interval (only used when
|
choice_ind_point |
Whether you want your choice indicators to be points (TRUE) or vertical lines (FALSE). |
pt_size |
Point plot size for estimates and choice indicators that are not highlighted (see below). |
lower_to_upper |
The size of the choice part of the plot, relative to the specification curve itself. |
highlight |
|
pt_size_highlight |
Point plot size for highlighted estimates and choice indicators. |
addon_sc |
ggplot objects to add to the the specification curve panel. |
addon_dc |
ggplot objects to add to the the design choice panel. |
file |
file name to save the plot to. Uses ggsave and defaults to NULL, meaning no save |
... |
Additional parameter that are forwarded to ggsave |
Significance of estimates is only dislayed when lb
and
ub
are present. It is assessed by testing whether
lb
and ub
are of equal sign.
See the vignette of the package for further details.
Nothing. Instead the assembled grob is directly drawn.
## Not run:
print("Sorry. No examples yet.")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.