plot_descriptive_statistics_shiny: Plot descriptive statistics

View source: R/plot-statistics-interactive.R

plot_descriptive_statistics_shinyR Documentation

Plot descriptive statistics

Description

Old but working plotting function for shiny application.

Usage

plot_descriptive_statistics_shiny(
  df,
  variables = "all",
  across,
  across.subset = NULL,
  plot.type = "boxplot",
  binwidth,
  test.pairwise = "none",
  test.groupwise = "none",
  display.points = FALSE,
  pt.size = 1.2,
  pt.alpha = 0.8,
  pt.color = "black",
  n.obs = 100,
  shape.to = "none",
  ref.group,
  clrp = "milo",
  ...,
  verbose = TRUE
)

Arguments

df

A data.frame that contains the grouping variable specified in across.

variables

Character vector. The names of the numeric variables of interest.

plot.type

Character value. One of 'histogram', 'ridgeplot', 'boxplot', 'violinplot' or 'density' to visualize the value distribution of those variables specified via the variables argument.

If set to 'boxplot' or 'violinplot' and only one variable is specified statistical test can be performed.

binwidth

Numeric value. Only relevant if plot_type is set to 'histogram'.

test.pairwise

Character value. One of 'none', 't.test', 'wilcox.test'.

test.groupwise

Character value. One of 'none', 'anova', 'kruskal.test'.

display.points

Logical. If set to TRUE the value distribution of n.cells is additionally displayed by points.

n.obs

Numeric value.

shape.to

Character value. Denotes the discrete variable to which the shape of the points are mapped. (Ignored if display.points is set to FALSE.)

ref.group

Character value. Denotes the reference group for the statistical tests. Must be one value of the variable specified in across.

...

Additional arguments given to ggplot2::facet_wrap().

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)


kueckelj/confuns documentation built on June 28, 2024, 9:19 a.m.