plot.pcops: S3 plot method for p-cops objects

Description Usage Arguments Examples

View source: R/cops.R

Description

S3 plot method for p-cops objects

Usage

1
2
## S3 method for class 'pcops'
plot(x, plot.type = c("confplot"), main, asp = NA, ...)

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

1
2
3
4
dis<-as.matrix(smacof::kinshipdelta)
resl<-pcops(dis,loss="strain",lower=0.1,upper=5,minpts=2)
plot(resl)
plot(resl,plot.type="Shepard")

cops documentation built on March 24, 2021, 1:06 a.m.