Learn R Programming

ProjectionBasedClustering (version 1.0.5)

ShepardDiagram: Draw a Shepard diagram

Description

This function plots a Shepard diagram of InputDist and OutputDist

Usage

ShepardDiagram(InputDist, OutputDist, xlabel = "Input Distances", 
ylabel = "Output Distances", fancy = F, label = "ProjectionMethod", gPlot = ggplot())

Arguments

InputDist

Matrix containing the distances of the inputspace.

OutputDist

Matrix containing the distances of the outputspace.

xlabel

Label of the x axis in the resulting Plot.

ylabel

Label of the y axis in the resulting Plot.

fancy

Set FALSE for PC and TRUE for publication

label

Title of the Shepard diagram

gPlot

Ggplot2 object to plot upon.

Value

ggplot2 object containing the plot.