Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot

Plot a PTModule object


Description

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

Usage

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

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 xyplot.

Details

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

Value

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

Author(s)

Pepijn de Vries

Examples

## 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")))

ProTrackR

Manipulate and Play 'ProTracker' Modules

v0.3.7
GPL-3
Authors
Pepijn de Vries [aut, cre, dtc]
Initial release
2020-02-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.