my_boxplot_and_jitter_func: Boxplot with jitter scatter points

View source: R/my_boxplot_and_jitter_func.R

my_boxplot_and_jitter_funcR Documentation

Boxplot with jitter scatter points

Description

This function makes a boxplot and jitter plot for animal comparisons. It needs at least two variable x, y to be plotted.

Usage

my_boxplot_and_jitter_func(
  dataset,
  xaxe = "Animal",
  yaxe,
  box_color = "Animal",
  scatt_color = box_color,
  faceted_by_1 = "Condition",
  faceted_by_2 = ".",
  jitter_width = 0.5,
  .alpha = 0.25,
  .dot_size = 2.5,
  base_font_size = 22,
  y_limits,
  compare_means = FALSE
)

Arguments

dataset

A dataframe with raw data of waves.

xaxe

String. name of the variable in the x axis.

yaxe

String. name of the variable in the y axis.

box_color

String. Defining the color for whisker box.

scatt_color

String. Defining the color for scatter points.

faceted_by_1

String. Define facet for plotting.

faceted_by_2

String. Define facet for plotting.

jitter_width

Double. Define how big is the with of the scatter points.

.alpha

Double. Define transparency for your scatter points.

.dot_size

Double. Define the size of the scatter points.

base_font_size

A integer. Modify the size of the fonts. Default to 22.

y_limits

A double. Optional parameter to set the upper y limit to your plot.

compare_means

Logic. Shall the mean of the groups be compared? This perform non-paired test using the Wilcoxon-test. Default to FALSE.

Value

A ggplot object with boxplot + jitter scatter plot.

Examples

# The example is still missing...

rjlopez2/AnlysisOfWaves documentation built on Sept. 15, 2022, 2:25 p.m.