spikeOnPathPlot: Plot a spikes on the animal path

Description Usage Arguments

View source: R/PlotsSpatial.R

Description

Plot the animal path from a Positrack object and the spikes in space from a SpatialProperties2d object.

Usage

1
2
3
4
5
spikeOnPathPlot(sop, clu, name = "", outma = c(2, 2, 2, 2),
  margin = c(1.5, 1.5, 1, 1), cex.name = 0.6, cex.point = 0.5,
  plotxlim = c(0, 80), plotylim = c(0, 80), mgp.x = c(0.5, 0.05, 0),
  mgp.y = c(0.8, 0.3, 0.2), axis.x.pos = 0, axis.y.pos = 0,
  plot.axis = TRUE, xlab = "", ylab = "", col = "red")

Arguments

sop

List containing the data to plot the spike on path, you can get this list with the function spikeOnPath It contains 4 objects: xSpike, ySpike, cluSpike, xPath and yPath

clu

Clu number of the cell of interest.

name

String with the name of the cell

outma

Outer margins of the figure

margin

Inner margins of the figure

cex.name

Size of the font use for the name of the map

cex.point

Size of the spike points

plotxlim

Limits of the x axis

plotylim

Limits of the y axis

mgp.x

mgp for the x axis

mgp.y

mgp for the y axis

axis.x.pos

Y position of the x axis

axis.y.pos

X position of the y axis

plot.axis

Whether to plot the axes or not (TRUE or FALSE)

xlab

Name to display under the x axis

ylab

Name to display at the left of the y axis

col

The color of the spikes


kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.