pupilPlot: pupilPlot

Description Usage Arguments Examples

Description

This function starts a shiny server for plotting pupil data.

Usage

1
2
3
4
5
6
pupilPlot(data = NULL, variableNames = c(),
  excludeFromSelectors = c("SubjectNr"), trialTimeVariable = "TrialTime",
  pupilSizeVariables = list(`Baseline Corrected` = "size"),
  samplingFrequency = 60, trialDuration = 5000,
  subjectVariable = "SubjectNr", trialVariable = "Trial",
  subjectMeansInterval = c(0, trialDuration))

Arguments

data

A full data.table with all relevant variables.

variableNames

Names of variables in the experiment that you would like to plot by.

excludeFromSelectors

Names of variables not to be used in selectors (e.g.: Subject numbers)

trialTimeVariable

Name of variable holding the trial-relative timepoints.

pupilSizeVariables

List of variable desriptions and names

samplingFrequency

How many samples per second.

trialDuration

How long did each trial last.

subjectVariable

Name of variable holding subject numbers.

trialVariable

Name of variable holding trial numbers.

subjectMeansInterval

Interval for exporting subject means.

Examples

1
2
3
4
Start the shiny server.
##not run
variables = c("Stim1","Stim2","SubjectNr","Experiment","ACC")
pupilPlot(alldatas,variables,trialDuration=7000,subjectVariable="SubjectNr")

thohag/pupilPlot documentation built on May 31, 2019, 10:45 a.m.