powered by
Plot a 2D MDS projection of a distance matrix
dmat_projection(dmat, point_colors = NULL, point_palette = NULL)
a ggplot object
distance matrix
optional list of labels to color points (will be coerced to factor)
optional palette used with ggplot2::scale_colour_manual()
ggplot2::scale_colour_manual()
dmat <- dist(iris[, c("Sepal.Width", "Sepal.Length")]) dmat_projection(dmat)
Run the code above in your browser using DataLab