Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/repeatedTrain.R
Given a list of spike trains (or a repeatedTrain
object) where
each train was acquired during,
say, one presentation of a given stimulus, a raster plot is
generated. If stimulus time properties are specified, the stimulus
application time also appears on the plot.
1 2 3 4 5 |
x |
a |
stimTimeCourse |
|
colStim |
the background color used for the stimulus. |
xlim |
a numeric (default value supplied). See |
pch |
data symbol used for the spikes. See |
xlab |
a character (default value supplied). See |
ylab |
a character (default value supplied). See |
main |
a character (default value supplied). See |
... |
see |
Basic raster plot stuff.
Nothing is returned raster
is used for its side effect, a
plot is generated on the current graphical device.
Brillinger (1992) calls these plots "rastor" instead of raster...
Christophe Pouzat christophe.pouzat@gmail.com
Brillinger, David R. (1992) Nerve Cell Spike Train Data Analysis: A Progression of Technique. JASA 87: 260–271.
as.repeatedTrain
,
is.repeatedTrain
,
print.repeatedTrain
,
summary.repeatedTrain
,
psth
1 2 3 4 5 6 7 8 9 10 | ## Load Vanillin responses data (first cockroach data set)
data(CAL1V)
## convert them into repeatedTrain objects
## The stimulus command is on between 4.49 s and 4.99s
CAL1V <- lapply(CAL1V,as.repeatedTrain)
## look at the individual raster plots
raster(CAL1V[["neuron 1"]],stimTimeCourse=c(4.49,4.99),main="N1")
plot(CAL1V[["neuron 2"]],stimTimeCourse=c(4.49,4.99),main="N2")
plot(CAL1V[["neuron 3"]],stimTimeCourse=c(4.49,4.99),main="N3")
plot(CAL1V[["neuron 4"]],stimTimeCourse=c(4.49,4.99),main="N4")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.