Skip to contents

Plots a density graph, grouped by duration of each call (rounded to the nearest 0.01 second), collapsed into a single graph.

Usage

plotDensityStackedByDuration(
  data_path,
  graph_title = "Call Distribution Grouped by Duration (s)",
  graph_subtitle = "Duration groups are rounded to the nearest 0.01 second.",
  chosen_group = c()
)

Arguments

data_path

The full path to the Excel file exported from DeepSqueak

graph_title

The title for the graph (there is a default title if not specified)

graph_subtitle

The subtitle for the graph (there is a default subtitle if not specified)

chosen_group

Specifying a particular group to be highlighted in the graph

Value

A ggplot2 visualization of the density graph shown in the viewer window, which can be manually exported.

Examples

if (FALSE) plotDensityStackedByDuration(
  data_path = "inst/extdata/Example_Mouse_Data.xlsx",
  graph_title = "myTitle", graph_subtitle = "myDescription"
)