plot2D.arr: Plots a 3-slice rank-3 array

View source: R/plot2D.arr.R

plot2D.arrR Documentation

Plots a 3-slice rank-3 array

Description

Plots a rank-3 array T_{m, n, p} which has to be 3-slice, hence p \in \{1, 2, 3\}.
The actual image matrix/data is T_{m, n, 1}.
The X-matrix is T_{m, n, 2}.
The Y-matrix is T_{m.n.3}.
Please see details for clearer understanding of array structure.

Usage

plot2D.arr(arr, gray.dens = 10^5, x.lab = NULL, y.lab = NULL)
plot2D.arr(arr)

Arguments

arr

The array,T_{m,n,p}

gray.dens

The no. of colours in the gray colour scale between 0 and 1 that the matrix plot of T_{m,n,1} would be sensitive to.
Please see gray for more details.
Has to be a numeric scalar.

x.lab

The x-axis label.
Must be a character scalar.

y.lab

The y-axis label.
Must be a character scalar.

Details

The image below describes the 3-slice rank-3 array T_{m,n,p} that is needed.
array.png

Value

The function returns nothing

Author(s)

Chitran Ghosal

See Also

img_2_arr

Examples

dat <- system.file("extdata", "STM.png", package = "StatsChitran")
tens <- img_2_arr(source.png = dat, x.lim = c(0, 6.115*10^-9), y.lim = c(0, 6.115*10^-9))
plot2D.arr(arr = tens)

Chitran1987/StatsChitran documentation built on Feb. 23, 2025, 8:30 p.m.