imagePvalues: Image plot of p-values

Description Usage Arguments Value See Also

View source: R/plots.R

Description

imagePvalues creates an image plot from a matrix or array of p-values

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
imagePvalues(
  pvalues,
  pcrit = c(0.001, 0.01, 0.05),
  grid = NULL,
  wrap = NULL,
  time_label = "Time (ms)",
  channel_label = "Channels",
  raster = TRUE,
  cluster_order = FALSE
)

Arguments

pvalues

numeric matrix or array of p-values with named dimensions (at least chan and time)

pcrit

numeric vector of significancy limits (default: 0.001, 0.01, 0.05)

grid

character vector or formula defining the layout of panels

wrap

character vector or formula defining the dimension which separates panels (only considered if grid is NULL)

time_label

character string; the label of the x (time) axis (default: "Time (ms)")

channel_label

character string; the label of the y (channel) axis default: "Channels")

raster

use raster image (TRUE, default) or not (FALSE)

cluster_order

logical; if TRUE, channels are ordered with hierarchical agglomerative clustering (default: FALSE)

Value

A ggplot object

See Also

imageValues for plotting effects or raw amplitudes


tdeenes/eegR documentation built on April 19, 2021, 4:17 p.m.