plot_coord: Visualization of significant differences in ERPs using...

Description Usage Arguments Author(s) See Also Examples

View source: R/plot_coord.R

Description

The plot coord takes the results of plot_fa to create a animated GIF plot for visualizing significant differences in ERPs across locations on the scalp over time.

Usage

1
2
3
4
plot_coord(tests_rst, frames, show, point_size = 14, high_col = "firebrick",
  low_col = "forestgreen", na_col = "grey70", text = T, text_size = 3,
  text_col = "black", circle = T, nose = T, cir_nose_col = "black",
  loop = 1, ...)

Arguments

tests_rst

the testing result from plot_fa.

frames

The time point of the ERP data

show

Which frames to show in the animation.

point_size

The size of the points (channels) on the scalp.

high_col

The color for "highly" significant time point (smaller p value).

low_col

The color for "low or no significant" time point (bigger p value).

na_col

The color for no specified channels on full 10-10 system.

text

Logical variable. Whether to show the channel label or not.

text_size

The text size of the channel label (when text = TRUE).

text_col

The text color of the channel label (when text = TRUE).

circle

Logical variable. Whether to show the scalp circle or not.

nose

Logical variable. Whether to show the nose or not.

cir_nose_col

The color of the nose (when nose = TRUE).

loop

The parameter for adjusting animations in ani.options. Whether to iterate or not (default TRUE to iterate for infinite times)

...

Further parameters in ani.options to adjust the animation (i.e. interval = 0.5), and gg_animate to save the animation.

Author(s)

Chi-Lin Yu <psychilinyu@gmail.com>, Ching-Fan Sheu <csheu@mail.ncku.edu.tw>

See Also

plot_tete plot_fa

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data(DirectedForgetting)
time_pt <- seq(-200, 1000, 1)

test_res <- plot_fa(data = DirectedForgetting, frames = time_pt,
                    channel = 5, subject = 1, uV = 6:1206, test = 4,
                    mode = "test_signal",
                    design = (~Subject + Condition), design0 = (~Subject), nbf = 5)

plot_coord(tests_rst = test_res$Test_Rst,
           frames = time_pt,
           show = seq(200, 500, by = 1),
           loop = 1,
           interval = 0.1,
           filename = "GIFfile.gif")

PsyChiLin/ERPplot documentation built on May 20, 2019, 3:34 p.m.