Learn R Programming

readABF (version 1.0.2)

plot.ABF: Plots an ABF Object

Description

S3 method to plot ABF objects. Converts the ABF object to a data frame and then plots the data frame.

Usage

# S3 method for ABF
plot(x, pch = ".", …, sweep = 1, type = c("all", "one"),
channels, unit = NULL)

Arguments

x

an object of class ABF, typically generated by readABF.

pch

same as pch from par.

...

further arguments that will be passed to plot.

sweep, type, channels, unit

arguments that will be passed to as.data.frame.ABF.

See Also

as.data.frame.ABF

Examples

Run this code
# NOT RUN {
# loads an example file and plots its first sweep
r <- readABF(system.file("extdata", "2009_01_19_0002_varlen_v18.abf", package="readABF"))
plot(r, sweep=1)

# leads to the same result
plot(as.data.frame(r, sweep=1), pch = ".")
# }

Run the code above in your browser using DataLab