lheatmap: LUNA plotting

View source: R/luna.R

lheatmapR Documentation

LUNA plotting

Description

draws a rectangular heatmap (e.g. spectrogram)

Usage

lheatmap(
  x,
  y,
  z,
  col = luna.globals$turbo.colors(100),
  mt = "",
  f = rep(T, length(z)),
  zero = rep(F, length(z)),
  xlines = NULL,
  ylines = NULL,
  zlim = NULL,
  win = NULL,
  legend = NULL
)

Arguments

x

x-axis values

y

y-axis values, of length(x)

z

z-axis values, of length(x)

col

100-valued color palette, defaults to lturbo(100)

mt

main title (string)

f

filter: boolean values of length equal to length(x)

zero

boolean vector of length equal to length(x); if T, set Z to 0

xlines

draw vertical lines along the x-axis at these values (default: none)

ylines

draw horizontal lines along the y-axus at these values (default: none)

zlim

set range for Z axis (defaults to observed range in Z)

win

winsorize Z at this percentile, e.g. 0.05

legend

integer: return Z quantiles at this many uniformly-spaced positions

Value

plot is generated in the current graphics device; no return value unless legend is set

Examples

## Not run: 
k <- ldb("out.db")
d <- k$PSD$CH_E_F
lheatmap(d$E, d$F, 10*log10(d$PSD))

## End(Not run)


remnrem/luna documentation built on June 1, 2025, 2:14 p.m.