S3 plot method for cops objects
# S3 method for cops
plot(x, plot.type = c("confplot"), main, asp = 1, ...)
an object of class cops
String indicating which type of plot to be produced: "confplot", "reachplot", "resplot","transplot", "Shepard", "stressplot" (see details)
the main title of the plot
aspect ratio of x/y axis; defaults to NA; setting to 1 will lead to an accurate represenation of the fitted distances.
Further plot arguments passed: see 'plot.smacof' 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.
dis<-as.matrix(smacof::kinshipdelta)
resl<-copstressMin(dis,itmax=20)
plot(resl)
Run the code above in your browser using DataLab