plot_distance_matrix: Plot distance matrix

View source: R/plotting_diffudist.R

plot_distance_matrixR Documentation

Plot distance matrix

Description

Plot a heatmap of the distance matrix using geom_tile.

Usage

plot_distance_matrix(
  DM,
  col_palette = viridis(n = 11),
  log_scale = FALSE,
  cex = 1,
  show_dendro = TRUE,
  title = ""
)

Arguments

DM

a distance matrix

col_palette

a colour palette, previously it was set to the 'spectral' palette of brewer.pal but now it is, by default, to the color-blind firendly viridis.

log_scale

logical. Default FALSE

cex

numerical value by which text should be magnified (default font size in theme is 11)

show_dendro

If the dendrogram resulting from hclust should be shown. Default TRUE

title

Title of the plot passed to labs. No title by default.

Value

plot ggplot


diffudist documentation built on March 7, 2023, 6:12 p.m.