PlotOdourResponseFromSpikes: Boxplot of spikes within a window (optionally less a...

Description Usage Arguments Value Author(s) See Also Examples

Description

Boxplot of spikes within a window (optionally less a baseline)

Usage

1
2
PlotOdourResponseFromSpikes(spiketimes, responseWindow,
  baselineWindow = NULL, freq = FALSE, PLOTFUN = stripchart, ...)

Arguments

spiketimes

list of spiketimes collected by CollectSpikesFromSweeps

responseWindow

vector of start and end time of odour response (in ms)

baselineWindow

vector of start and end time of baseline period (in ms)

freq

Plot spike rate in Hz rather than counts (default FALSE)

PLOTFUN

stripchart, boxplot or similar function (default stripchart)

...

Additional arguments passed on to PLOTFUN

Value

results of plotfun (if any)

Author(s)

jefferis

See Also

CollectSpikesFromSweeps

Other OdourResponse: OdourResponseFromSpikes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 
spikes=CollectSpikesFromSweeps(
  system.file('igor','spikes','nm20110914c4',package='gphys'),
  subdir='BLOCKI',sweeps=0:4)
## stripchart
PlotOdourResponseFromSpikes(spikes,c(2200,2700),c(0,2000),pch=19,method='jitter',
 col=1:6)
## boxplot, in Hz
PlotOdourResponseFromSpikes(spikes,c(2200,2700),c(0,2000),freq=TRUE,
 PLOTFUN=boxplot)

jefferis/gphys documentation built on June 5, 2019, 9:45 p.m.