plot.heatmap: Heatmap of xyz data

View source: R/heatmap.R

plot.heatmapR Documentation

Heatmap of xyz data

Description

Visualize the xyz data in a 2d heatmap.

Usage

## S3 method for class 'heatmap'
plot(
  x,
  y,
  z,
  nx = 100,
  ny = 100,
  na = 0,
  nlevels = 10,
  levels = NULL,
  colors = rev(brewer.pal(11, "Spectral")),
  bias = 1,
  ...
)

Arguments

x, y

the coordinates of each z value.

z

the observed value for each (x,y) point.

nx, ny

the number of bins in x and y dimension, used by vbin.grid.

na

replacement for NA value in matrix bins, used by vbin.grid.

nlevels

the number of colorful stages to plot, see 'filled.contour'.

levels

a numeric vector to indicate the colorful stages, see 'filled.contour'.

colors

a vector of color names or hex values, see 'colorRampPalette'.

bias

a positive number. Higher values give more widely spaced colors at the high end, see 'colorRampPalette'.

...

other parameters sent to 'filled.contour'.


caesar0301/movr documentation built on June 18, 2022, 2:37 a.m.