Learn R Programming

visxhclust (version 1.1.0)

dmat_projection: Plot a 2D MDS projection of a distance matrix

Description

Plot a 2D MDS projection of a distance matrix

Usage

dmat_projection(dmat, point_colors = NULL, point_palette = NULL)

Value

a ggplot object

Arguments

dmat

distance matrix

point_colors

optional list of labels to color points (will be coerced to factor)

point_palette

optional palette used with ggplot2::scale_colour_manual()

Examples

Run this code
dmat <- dist(iris[, c("Sepal.Width", "Sepal.Length")])
dmat_projection(dmat)

Run the code above in your browser using DataLab