HeatmapOP: Heatmap.

Description Usage Arguments Value Author(s) Examples

View source: R/epiN.R

Description

Heatmap function based on the lattice package more information: ?xyplot

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
HeatmapOP(
  x,
  col = "RdYlGn",
  colNA = "grey",
  coln = 11,
  bordercol = "grey",
  borderwidth = 0.1,
  breaks = "sym",
  main = "",
  sub = "",
  dendrogram = "none",
  colorkey = list(space = "right"),
  Colv = TRUE,
  Rowv = TRUE,
  xrot = 90,
  yrot = 0,
  shrink = c(1, 1),
  cexCol = 1,
  cexRow = 1,
  cexMain = 1,
  cexSub = 1,
  colSideColors = NULL,
  aspect = "fill",
  contour = FALSE,
  useRaster = FALSE,
  xlab = NULL,
  ylab = NULL,
  colSideColorsPos = "top",
  clust = NULL,
  clusterx = NULL,
  ...
)

Arguments

x

Matrix.

col

Color. See brewer.pal.info for all available color schemes.

colNA

color for NAs; defaul is grey

coln

Number of colors.

bordercol

Border color.

borderwidth

Border width.

breaks

Defines the breaks in the color range. "sym" makes the breaks symmetric around 0.

main

Main title.

sub

Subtitle.

dendrogram

Draw dendrogram with "both", "col" or "row", or do not draw with "none".

colorkey

Draw colorkey list(space="left") or list(space="right").

Colv

Cluster columns (TRUE) or not (FALSE).

Rowv

Cluster rows (TRUE) or not (FALSE).

xrot

Rotate the column names by degree.

yrot

Rotate the row names by degree.

shrink

c(x,y) defines a range of size for the data boxes from low to high.

cexCol

Font size of column names.

cexRow

Font size of row names.

cexMain

Font size of main title.

cexSub

Font size of subtitle.

colSideColors

Defines a numeric vector to annotate columns with different colors.

aspect

"iso" for quadratic boxes or "fill" for streched boxes.

contour

TRUE adds a contour plot.

useRaster

TRUE to add raster visuals

xlab

Label for the x-axis.

ylab

Label for the y-axis.

colSideColorsPos

Place colSideColors at the "top" or "bottom".

clust

p, s, or k for correlation clustering

clusterx

Optional data matrix y with the same dimensions as x. x is columns or rows are sorted by the cluster information of y.

...

Optional arguments.

Value

lattice object/matrix

Author(s)

Martin Pirkl & Oscar Perpinan at http://oscarperpinan.github.io/rastervis/

Examples

1
2
x <- matrix(rnorm(50), 10, 5)
HeatmapOP(x, dendrogram = "both", aspect = "iso", xrot = 45)

Example output



epiNEM documentation built on Nov. 8, 2020, 6:51 p.m.