im_heatmap: Create heatmap image from t-values

Description Usage Arguments Details Value

View source: R/im_heatmap.R

Description

Create heatmap image from t-values

Usage

1
im_heatmap(tz_file, base_image, mask, thresh = 1.96, absval = FALSE)

Arguments

tz_file

Path to file of t-values.

base_image

Relative path to base image file (in .jpg or .png format).

mask

Relative path to mask image file (in .jpg or .png format). Defaults to NULL.

thresh

The cuttoff score for significance. Defaults to p = .05, or 1.96.

absval

Logical. Should the absolute value of the z/t scores be taken?

Details

If saving graph, make sure to save the image with the exact width and height of the original images, else the heatmap values will not be placed correctly.

Value

Returns a ggplot2 object that can be further manipulated using ggplot2 functions, or to be saved.


d-bohn/quantIm documentation built on Jan. 23, 2021, 2:43 p.m.