smpsth: Generate smooth PSTHs for a set of spike trains

View source: R/STAR.R

smpsthR Documentation

Generate smooth PSTHs for a set of spike trains

Description

Generate smooth PSTHs for a set of spike trains

Usage

smpsth(spikes, breaks = c(bw = 0.5, step = 0.05), CI = 0.95,
  stimRange = NULL, ...)

Arguments

spikes

A spiketimes object

breaks

bins for psth or smoothing parameters (see STAR::psth)

CI

Confidence interval to calculate (defaults to 95 percent)

stimRange

Stimulus time range c(start,end) in seconds

...

Ignored

Value

list of psth objects

Author(s)

jefferis

See Also

STAR::psth, STAR::plot.psth, spiketimes

Examples

spikes=CollectSpikesFromSweeps(
  system.file('igor','spikes','nm20120917c1',package='gphys'),
  subdir="BLOCKA",stimRange=c(2000,2500))
smpsth(spikes)

jefferis/gphys documentation built on June 18, 2024, 4:35 a.m.