heatGrid: Create heat map

Description Usage Arguments Value

View source: R/pkHeatmap.r

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 Nov. 14, 2020, 12:29 p.m.