heatGrid: Create heat map

View source: R/pkHeatmap.r

heatGridR Documentation

Create heat map

Description

Function for a simple heat map with custom limits in base r plotting. The function is a wrapper for the image function

Usage

heatGrid(
  mat = NULL,
  xrange = NULL,
  yrange = NULL,
  xlimit = NULL,
  ylimit = NULL,
  colramp = topo.colors(200),
  maketicks = T,
  xticks = NULL,
  yticks = NULL,
  makebox = T,
  axislwd = 0.5,
  locut = NULL,
  hicut = NULL,
  nacut = F,
  axisvars = NULL,
  ...
)

pkHeatmap(
  mat = NULL,
  xrange = NULL,
  yrange = NULL,
  xlimit = NULL,
  ylimit = NULL,
  colramp = topo.colors(200),
  maketicks = T,
  xticks = NULL,
  yticks = NULL,
  makebox = T,
  axislwd = 0.5,
  locut = NULL,
  hicut = NULL,
  nacut = F,
  axisvars = NULL,
  ...
)

Arguments

mat

matrix with values to create heatmap for

xrange

the x range in which to plot the grid (vector length 2)

yrange

the y range in which to plot the grid (vector length 2)

xlimit

the x limits of the plot (vector length 2)

ylimit

the y limits of the plot (vector length 2)

colramp

the colors to use for plotting (vector)

maketicks

draw simple x,y axes (logical).

xticks

position of xticks, defaults to pretty

yticks

posiition of yticks, defaults to pretty

makebox

draw box line around plot (logical)

axislwd

linewidth to use for ticks and box (numeric)

locut

low threshold on raster values (numeric)

hicut

high threshold on raster values (numeric)

nacut

values outside cutrange are set to NA instead of cut value (logical)

axisvars

list with additional arguments to axis (named list, not including side,at or lwd)

...

other parameters passed to image function

Value

plot


kraaijenbrink/pkrf documentation built on July 4, 2023, 10:16 p.m.