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

View source: R/plot.pcops.R

plot.pcopsR Documentation

S3 plot method for p-cops objects

Description

S3 plot method for p-cops objects

Usage

## S3 method for class 'pcops'
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: can be one of "confplot", "reachplot", "resplot", "transplot", "Shepard", "stressplot", "bubbleplot", "histogram" (see 'plot.smacofP', 'plot.smacofB' and 'plot.copsc'). Note that not all plots might be available for all losses.

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 represenation of the fitted distances.

...

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

Details

See plot.smacofP

Value

no value just plots. Input object is returned invisibly.

#@importFrom smacofx plot

Examples

dis<-as.matrix(smacof::kinshipdelta)
resl<-pcops(dis,loss="stress",lower=0.1,upper=5,minpts=2)
plot(resl,plot.type="confplot")
plot(resl,plot.type="reachplot")
plot(resl,plot.type="Shepard")
plot(resl,plot.type="transplot")
plot(resl,plot.type="stressplot")
plot(resl,plot.type="bubbleplot")
plot(resl,plot.type="histogram")

cops documentation built on Oct. 22, 2026, 3 a.m.