validate_inputs: Validate data passed to plot_dataset

View source: R/plot.R

validate_inputsR Documentation

Validate data passed to plot_dataset

Description

Take a dataset and its analysis, together with plotting parameters, to visualize an IDOC experiment

Usage

validate_inputs(dataset, analysis)

Arguments

dataset

List of raw data including:

  • roi: every row records the position of one animal at one point in time

  • controller: every row records the status of all IDOC stimulus at one point in time

  • limits

  • border

analysis

List of processed data including:

  • annotation: every row is a decision zone exit and its appetitive / aversive value

  • pi: preference index scored by each animal

Details

A corssing dataset where every record represents a decision zone exit of one animal is required to show the exits in the plot

Value

ggplot2 object

See Also

mark_stimuli()

mark_decision_zone()

mark_crosses()

save_plot()


shaliulab/idocr documentation built on June 1, 2025, 4:59 p.m.