Learn R Programming

ProTrackR (version 0.4.4)

plot: Plot a PTModule object

Description

Plots the waveforms of the (non-empty) PTSamples in a PTModule object.

Usage

# S4 method for PTModule,missing
plot(x, y, plot.loop.positions = TRUE, ...)

Value

Returns an object of class trellis. See documentation of lattice::xyplot for more details.

Arguments

x

A PTModule object for which the waveforms of the PTSamples need to be plotted.

y

missing. Argument from the generic plotting method, don't use.

plot.loop.positions

A logical value indicating whether loop positions need to be visualised. For looped samples, the starting and ending positions are marked by a vertical green and red line, respectively.

...

Arguments that are passed on to lattice::xyplot.

Author

Pepijn de Vries

Details

A plotting routine based on the lattice::xyplot from the lattice-package. Plots each (non-empty) waveform in a separate panel. Use arguments of the lattice::xyplot function to customise the plot.

Examples

Run this code
## get the example PTModule provided with the ProTrackR package
data("mod.intro")

## The most basic way to plot the module samples:
plot(mod.intro)

## By using xyplot arguments, we can make it look nicer:
plot(mod.intro, type = "l", layout = c(1,4),
     scales = list(x = list(relation = "free")))

Run the code above in your browser using DataLab