plot.abf2split {abf2}R Documentation

Plot an abf2split segment

Description

Plot a segment of an ABF data trace obtained by calling split on an abf2 object.

Usage

## S3 method for class 'abf2split'
plot(x, pts = 1000, time = NULL, type = "s", col = 1,
xlab = "Time (s)", ylab = "Current (pA)",
main = paste("Segment ", x$index, " at ", x$level, " mV  [", x$comment, "]", sep = ""),
...)

Arguments

x

An abf2split object returned by split.abf2.

pts

The maximum number of sample points to plot. If the segment actually contains fewer samples than this, that smaller number will be plotted. If, as is more common, the segment contains many more samples, it is downsampled to this number of points.

time

Optional specifier of a time range to be plotted. By default the full segment is used. If a single numeric value is provided here, it specifies the end time, with the plot starting from the beginning of the segment. Otherwise the segment is plotted from the time[1] to time[2].

type

The plot type (see plot). By default, traces are drawn with the stair-step style "s".

col

The colour with which the trace should be plotted.

xlab

Label for the x-axis of the plot.

ylab

Label for the y-axis of the plot.

main

Main title for the plot.

...

Additional parameters passed to plot.

Value

None.

Author(s)

Matthew Caldwell <m.caldwell@ucl.ac.uk>

See Also

split.abf2, abfload

Examples

## Not run: 
# load an ABF file
ab <- abfload()

# split the 2nd channel
abx <- split(ab, adc=2)

# plot the first segment
plot(abx[[1]])

## End(Not run)

[Package abf2 version 0.7-1 Index]