plot_pair_changes: Plot pair changes

Description Usage Arguments Value Examples

View source: R/plot-pair-changes.R

Description

Plot pair changes

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_pair_changes(
  group_a,
  group_b,
  value_label = NULL,
  group_label = NULL,
  SESOI_lower = 0,
  SESOI_upper = 0,
  group_a_label = "Group A",
  group_b_label = "Group B",
  control = plot_control()
)

Arguments

group_a

Numeric vector. This group represents baseline/control, observed variable, Pre-test in the paired design, or "practical" measure

group_b

Numeric vector. This group represents experimental, predicted variable, Post-test in the paired design, or "criterion" measure

value_label

Character string. Label to be used for y-axis. Default is NULL

group_label

Character string. Label to be used for x-axis. Default is NULL

SESOI_lower

Lower smallest effect size of interest threshold

SESOI_upper

Upper smallest effect size of interest threshold

group_a_label

Character vector. The name of the group_a. Default is "Group A"

group_b_label

Character vector. The name of the group_b. Default is "Group B"

control

Plotting control object returned from plot_control

Value

Returns link[ggplot2]{ggplot} object

Examples

1
2
3
4
5
plot_pair_changes(rnorm(100, 100, 20),
  rnorm(100, 110, 40),
  SESOI_lower = -10,
  SESOI_upper = 10
)

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.