Learn R Programming

fpa (version 1.0)

plot_pattern: Plot the general fixation pattern

Description

The plot_pattern() function provides a quick tool to plot the fixation pattern for conditions. It generates 3-dimensional data, with x of "Time", y of "Region", and the colors representing the value of fixation probabilities.

Usage

plot_pattern(data, Condition = "All")

Arguments

data
the data frame returned by the get_pattern function.
Condition
the conditions which the user would like to plot. It can be a string ("All"), a number (e.g., 1), or a vector (e.g., c(1,2)). The default value is "All", meaning all conditions will be plotted.

See Also

get_pattern, ft2fp

Examples

Run this code
data(pattern)
plot_pattern(pattern)
plot_pattern(pattern, Condition=1)
plot_pattern(pattern, Condition=c(1,2))

Run the code above in your browser using DataLab