plot.cops {cops} | R Documentation |
S3 plot method for cops objects
Description
S3 plot method for cops objects
Usage
## S3 method for class 'cops'
plot(x, plot.type = c("confplot"), 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" (see details)
|
main |
the main title of the plot
|
asp |
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.
|
Examples
dis<-as.matrix(smacof::kinshipdelta)
resl<-copstressMin(dis,itmax=20)
plot(resl)
[Package
cops version 1.3-1
Index]