plot_pattern {fpa}R Documentation

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.

Author(s)

Jinlu Cao

See Also

get_pattern, ft2fp

Examples

data(pattern)
plot_pattern(pattern)
plot_pattern(pattern, Condition=1)
plot_pattern(pattern, Condition=c(1,2))

[Package fpa version 1.0 Index]