cell_layer_point_ggplot_func: cell_layer_point_ggplot_func

View source: R/cell_layer_point_ggplot_func.R

cell_layer_point_ggplot_funcR Documentation

cell_layer_point_ggplot_func

Description

Create a dot plot ggplot object layer on a base canvas plot. This function make dots plot with aggregated waves (average) by cells, that is, every datapoint represent the average value of multiples waves of single cells. Note: this function is wrapped inside the final superplot function.

Usage

cell_layer_point_ggplot_func(
  ggplot_obj,
  dataset,
  yaxe,
  my_grouping_vars = c("Animal_No", "Animal", "Condition", "Experiment", "Treatment"),
  jitter_width = 3.5,
  cell_size = 2,
  cell_alpha = 0.4
)

Arguments

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.

yaxe

A string. The variable name of interest to plot.

my_grouping_vars

Character vector. A character vector of groups names assigned to perform the cell aggregation. Don't change at least you know what you are doing!

jitter_width

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

cell_size

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

cell_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 cell datapoint.

Examples

# the example is missing

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