RasterPlot: Raster plot

View source: R/RasterPlot.R

RasterPlotR Documentation

Raster plot

Description

Produces a raster plot for a single neuron.

Usage

RasterPlot(
  spike.train,
  time.highlight = c(),
  trial.highlight = c(),
  graph.title = NULL
)

Arguments

spike.train

a list of numeric vectors, each of which contains the spike times from a single trial of the experiment.

time.highlight

a numeric vector indicating times (if any) to highlight with dashed vertical lines; for example, the onset/offset times of a stimulus.

trial.highlight

a numeric vector indicating trials (if any) to highlight by showing them in a different color.

graph.title

the title of the plot

Value

A ggplot object containing the parameters of the Raster plot.


dpwynne/mmnst documentation built on Aug. 1, 2023, 8:08 a.m.