st_heatmap: Plot a heatmap of the stability results

Description Usage Arguments Value Examples

View source: R/st_heatmap.R

Description

Plot a heatmap of the stability results

Usage

1
2
3
4
5
6
7
8
9
st_heatmap(
  data,
  order = "none",
  label = FALSE,
  low = "red2",
  mid = "yellow",
  high = "forestgreen",
  midpoint = 0.5
)

Arguments

data

input data frame resulting from st_previz().

order

character: none, mean or median; if the heatmap should be sorted by any of those statistics of the stability values by individuals.

label

logical; FALSE to avoid printing the value or TRUE to print it.

low

color for the lowest value.

mid

color for the middle value.

high

color for the highest values.

midpoint

value to situate the middle.

Value

A heatmap of the stability values in the form of a "ggplot" object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
t1_t2 <- paired_times(data = clr[,1:25], first = "_1",
                      second = "_25", common = "_0_")
t2_t3 <- paired_times(data = clr[,1:25], first = "_25",
                      second = "_26", common = "_0_")
klist_t1_t2 <- iterative_clustering(data = t1_t2, parallel = FALSE)
klist_t2_t3 <- iterative_clustering(data = t2_t3, parallel = FALSE)
result_t1_t2 <- stabilitas(klist_t1_t2, common = "_0_")
result_t2_t3 <- stabilitas(klist_t2_t3, common = "_0_")
results <- st_previz(results = list(result_t1_t2, result_t2_t3),
                     times = c("t1_t2", "t2_t3"))
st_heatmap(data = results, order = "mean", label = TRUE)

microSTASIS documentation built on Sept. 14, 2021, 9:07 a.m.