plot.smacofP {cops} | R Documentation |
S3 plot method for smacofP objects
Description
S3 plot method for smacofP objects
Usage
## S3 method for class 'smacofP'
plot(
x,
plot.type = "confplot",
plot.dim = c(1, 2),
bubscale = 5,
col,
label.conf = list(label = TRUE, pos = 3, col = 1, cex = 0.8),
identify = FALSE,
type = "p",
pch = 20,
asp = 1,
main,
xlab,
ylab,
xlim,
ylim,
legend = TRUE,
legpos,
loess = TRUE,
...
)
Arguments
x |
an object of class smacofP |
plot.type |
String indicating which type of plot to be produced: "confplot", "resplot", "Shepard", "stressplot","transplot", "bubbleplot" (see details) |
plot.dim |
dimensions to be plotted in confplot; defaults to c(1, 2) |
bubscale |
Scaling factor (size) for the bubble plot |
col |
vector of colors for the points |
label.conf |
List with arguments for plotting the labels of the configurations in a configuration plot (logical value whether to plot labels or not, label position, label color) |
identify |
If 'TRUE', the 'identify()' function is called internally that allows to add configuration labels by mouse click |
type |
What type of plot should be drawn (see also 'plot') |
pch |
Plot symbol |
asp |
Aspect ratio; defaults to 1 so distances between x and y are represented accurately; can lead to slighlty weird looking plots if the variance on one axis is much smaller than on the other axis; use NA if the standard type of R plot is wanted where the ylim and xlim arguments define the aspect ratio - but then the distances seen are no longer accurate |
main |
plot title |
xlab |
label of x axis |
ylab |
label of y axis |
xlim |
scale of x axis |
ylim |
scale of y axis |
legend |
Flag whether legends should be drawn for plots that have legends |
legpos |
Position of legend in plots with legends |
loess |
should loess fit be added to Shepard plot |
... |
Further plot arguments passed: see 'plot.smacof' and 'plot' for detailed information. Details:
|
Examples
dis<-as.matrix(smacof::kinshipdelta)
res<-powerStressMin(dis)
plot(res)
plot(res,"reachplot")
plot(res,"Shepard")
plot(res,"resplot")
plot(res,"transplot")
plot(res,"stressplot")
plot(res,"bubbleplot")