kheatmap: Heat map function

Description Usage Arguments Details Value

View source: R/kheatmap.R

Description

Bespoke function for Quan Seminar talk.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
kheatmap(
  n_K,
  X_norm,
  datalist,
  main.n = 5,
  sub.n = n_K,
  iter.max = 25,
  nstart = 100,
  plotit = TRUE,
  ramp = "var",
  ramp.type = 2,
  dend.type = "original"
)

Arguments

n_K

Number of K cluster to use

X_norm

The normed centers as a matrix, each row is a centroid image

datalist

The list with dat, dat.clean and pos.loc.

main.n

The number of main clusters. These will have different colors.

sub.n

The number of sub levels. This will have different shades.

iter.max

Passed to the kmeans function.

nstart

Passed to the kmeans function.

plotit

If TRUE, plot the heat map.

ramp

Type of smoothing to do on shading within a group. Passed to myheatmap().

ramp.type

Type of shading to do. Passed to myheatmap().

dend.type

Typ of dendrogram passed to dendIMG().

Details

Notes: Probably too customized and prelimanary to keep.

Value

A list with two types of objects: a heatmap and a dendogram.


UW-Upwelling-Project/imageryML documentation built on Dec. 18, 2021, 6:11 p.m.