plot_lines_firing_rate_by_treatment: Dot/boxplot plot of average firing rate by treatment

View source: R/plot_lines_firing_rate_by_treatment.R

plot_lines_firing_rate_by_treatmentR Documentation

Dot/boxplot plot of average firing rate by treatment

Description

Make a plot where the x-axis are the treatments and the y-axis is the average firing rate on the log scale show a box (and wisker) plot for each treatment summarizing across neurons in the experiment overlay points for each neuron jittering horizontally to allow them to be seen more easily

Usage

plot_lines_firing_rate_by_treatment(
  experiment,
  plot_width = 6,
  plot_height = 6,
  output_base = "product/plots",
  verbose = TRUE
)

Details

experiment: experiment dataset loaded with mema::load_experiment(...)

plot_width/plot_height: dimensions of the output plot

returns: the ggplot2 Saves the result to product/plots/firing_rate_by_treatment_<experiment_tag>_<date_code>.(pdf|png) It save both .pdf and .png because it's easier to email etc small pngs while for use in an a manuscript having the vector version means that it can be tweaked with illustrator


momeara/mema documentation built on Nov. 4, 2022, noon