plot.abf2split {abf2} | R Documentation |
abf2split
segment
Plot a segment of an ABF data trace obtained by calling split
on an
abf2
object.
## 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 = ""), ...)
x |
An |
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 |
type |
The plot type (see |
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 |
None.
Matthew Caldwell <m.caldwell@ucl.ac.uk>
## 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)