Learn R Programming

FreqProf (version 0.0.1)

plot_freqprof: Plot Frequency Profiles.

Description

Use plot_freqprof to plot frequency profile data generated from freqprof.

Usage

plot_freqprof(data.freqprof, yAxis = NULL, xAxisUnits = "sec", panel.in = TRUE, panel.out = TRUE, gg = FALSE, multiPlot = FALSE, tick.every = round(length(data.freqprof$data$time)/31), label.every = 3)

Arguments

data.freqprof
data formated into class freqprof.
yAxis
a string labelling the y-axis, defaults to data.freqprof$type.
xAxisUnits
a string indicating x-axis units, defaults to "sec".
panel.in
if FALSE the first panel of the frequency profile, the window moving in, is not plotted.
panel.out
if FALSE the third panel of the frequency profile, the window moving out, is not plotted.
gg
if TRUE, will use ggplot2 to plot frequency profiles.
multiPlot
if TRUE, will plot each behavior in its own panel.
tick.every
the spacing between each plot tick mark. By default, N/30 where N is the number of time units.
label.every
label every X ticks, where X = label.every. By default, label.every = 3.

Value

Returns a frequency profiles plot.

Examples

Run this code
data(s58)
plot_freqprof(freqprof(s58))

Run the code above in your browser using DataLab