wave_layer_point_ggplot_func: wave_layer_point_ggplot_func

View source: R/wave_layer_point_ggplot_func.R

wave_layer_point_ggplot_funcR Documentation

wave_layer_point_ggplot_func

Description

Create a dot plot ggplot object layer on a base canvas plot. This function make single waves dot plot with the raw data that is, no aggregation on single waves for multiples cells. Note: this function is wrapped inside the final superplot function.

Usage

wave_layer_point_ggplot_func(
  base_ggplot_obj,
  dataset,
  xaxe = "Animal",
  yaxe,
  jitter_width = 3.5,
  wave_size = 2,
  wave_alpha = 0.4
)

Arguments

base_ggplot_obj

A ggplot object. the base canvas plot which you want to add the layer to.

dataset

A dataframe object. The dataset for analysis, eg wave kinetics or wave occurrence df.

xaxe

A string. The variable you want to compare with. Default to Animal.

yaxe

A string. The variable name of interest to plot.

jitter_width

A double. Value assigned to the jitter width. Default to 3.5.

wave_size

A double. Value assigned to the size of the dots. Default to 2.

wave_alpha

A double. Value assigned to the transparency of the dots. Default to 0.4.

Value

A ggplot object with a dotplot additional layer of individual waves datapoint.

Examples

# the example is missing

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