plot_effect: Plot significance versus effect size.

View source: R/functions_testing.R

plot_effectR Documentation

Plot significance versus effect size.

Description

Plots effect size statistic and the adjusted significance for the given eTest object storing results of a statistic test. Plot tag contains (range) n numbers of complete observations.

Usage

plot_effect(
  etest_object,
  point_alpha = 0.5,
  point_hjitter = 0,
  point_wjitter = 0,
  point_size = 2,
  point_color = c("gray60", "coral2"),
  plot_title = NULL,
  plot_subtitle = NULL,
  cust_theme = ggplot2::theme_classic(),
  show_labels = c("none", "all", "signif"),
  txt_size = 2.75,
  ...
)

Arguments

etest_object

and eTest object, created e.g. with compare_variables.

point_alpha

alpha of the plot points.

point_hjitter

point jitter height.

point_wjitter

point jitter width.

point_size

size of the points in the plots.

point_color

a pair of valid R colors: 1) for non-significant and 2) for significant effects.

plot_title

text to be displayed in the plot title.

plot_subtitle

text to be displayed in the plot subtitle.

cust_theme

custom ggplot2 theme.

show_labels

which points should be labeled? 'none' hides labels (default), 'all': labels all points, 'signif': labels only the significant effects with the variable name.

txt_size

size of the label text.

...

additional arguments passed to geom_text_repel.

Value

a ggplot point plot, significance is coded by the point fill color.


PiotrTymoszuk/ExDA documentation built on Nov. 17, 2024, 5:46 p.m.