colorize: Make image plots more colorful (only for ggplot objects)

Description Usage Arguments Value

View source: R/plots.R

Description

colorize changes the color scale of imageValues plots

Usage

1
2
3
4
5
6
7
colorize(
  obj,
  low = scales::muted("blue"),
  mid = "white",
  high = scales::muted("red"),
  ...
)

Arguments

obj

a ggplot object created by imageValues

low, mid, high

colors to produce a low < mid < high color scale

...

additional arguments to be passed to link[ggplot2]{scale_fill_gradient2}

Value

a ggplot object


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