autoplot_paired: Automatised plot for paired data This is a wrapper function...

autoplot_pairedR Documentation

Automatised plot for paired data This is a wrapper function to set a plot with different parameters from ggplot for paired data.

Description

Automatised plot for paired data This is a wrapper function to set a plot with different parameters from ggplot for paired data.

Usage

autoplot_paired(
  data,
  timepoints,
  group,
  plot_type = "Mean_lines",
  add_points = F,
  add_lines = T,
  add_individual_lines = F,
  error_bar = "IC95",
  stat = "param",
  alpha_line = 0.5
)

Arguments

data

A dataframe with row corresponding to samples/patients and columns to variables.

timepoints

A character vector corresponding to the studied paired variables.

group

A character string corresponding to the comparative groups.

plot_type

Set the plot type (Boxplot, Barchart_mean or Barchart_count).

add_points

Add data points as a scatter plot to the graph.

add_lines

Add line to paired data

add_individual_lines

Add each individual (samples) lines to the plot.

error_bar

Type of error bar to be shown on the barcharts (IC95 or se or hide).

stat

Type of statistics to show (param, non_param or no).

alpha_line

Transparency of the paired lines


VincentAlcazer/StatAid documentation built on Aug. 27, 2024, 1:50 a.m.