plot_pattern: Plot the general fixation pattern

Description Usage Arguments Author(s) See Also Examples

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

1
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

1
2
3
4

Example output

Loading required package: reshape
Loading required package: fields
Loading required package: spam
Loading required package: dotCall64
Loading required package: grid
Spam version 2.2-2 (2019-03-07) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction 
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.

Attaching package: 'spam'

The following objects are masked from 'package:base':

    backsolve, forwardsolve

Loading required package: maps
See https://github.com/NCAR/Fields for
 an extensive vignette, other supplements and source code 

fpa documentation built on May 2, 2019, 9:27 a.m.