plot.copsc {cops}R Documentation

S3 plot method for cops objects

Description

S3 plot method for cops objects

Usage

## S3 method for class 'copsc'
plot(x, plot.type, main, asp = 1, ...)

Arguments

x

an object of class cops

plot.type

String indicating which type of plot to be produced: "confplot", "reachplot", "resplot","transplot", "Shepard", "stressplot", "bubblepot", "histogram" (see details)

main

the main title of the plot

asp

aspect ratio of x/y axis; defaults to 1; setting to 1 will lead to an accurate representation of the fitted distances.

...

Further plot arguments passed: see 'plot.smacofP' and 'plot' for detailed information.

Details:

  • Configuration plot (plot.type = "confplot"): Plots the MDS configurations.

  • Reachability plot (plot.type = "confplot"): Plots the OPTICS reachability plot and the OPTICS cordillera

  • Residual plot (plot.type = "resplot"): Plots the dissimilarities against the fitted distances.

  • Linearized Shepard diagram (plot.type = "Shepard"): Diagram with the transformed observed dissimilarities against the transformed fitted distance as well as loess smooth and a least squares line.

  • Transformation Plot (plot.type = "transplot"): Diagram with the observed dissimilarities (lighter) and the transformed observed dissimilarities (darker) against the fitted distances together with loess smoothing lines

  • Stress decomposition plot (plot.type = "stressplot", only for SMACOF objects in $fit): Plots the stress contribution in of each observation. Note that it rescales the stress-per-point (SPP) from the corresponding smacof function to percentages (sum is 100). The higher the contribution, the worse the fit.

  • Bubble plot (plot.type = "bubbleplot", only available for SMACOF objects $fit): Combines the configuration plot with the point stress contribution. The larger the bubbles, the better the fit.

#@importFrom smacofx plot

Examples

dis<-as.matrix(smacof::kinshipdelta)
set.seed(1)
resl<-copstressMin(dis,itmax=500)
plot(resl)

[Package cops version 1.11-3 Index]