Learn R Programming

smacofx (version 1.22-0)

alignplot: Function to plot Procrustes aligned MDS configurations

Description

This plots a series of Procrustes aligned configuration plots, aligned to the reference configuration.

Usage

alignplot(objectlist, reference, layoutmat = NULL, mains = NULL, ...)

Value

no return value; just plots

Arguments

objectlist

a list of object of class smacofP or smacofB (or anything with a $conf slot where the configuration is). Thse are the plots to Procrustes adjust.

reference

the reference configuration/matrix

layoutmat

a matrix layout for the plot region. It is the 'mat' argument to 'layout'. If missing, the function attempts to create a layout that can hold all plots, but it is not very smart.

mains

a character string of headings for each plot. It must be of length(objectlist).

...

additional arguments passed to the confplot of 'plot.smacofP'. See 'plot.smacof' for the options.

Examples

Run this code
dis<-as.matrix(smacof::kinshipdelta)
res1<-powerStressMin(dis)
res0<-smacof::mds(dis)
res2<-smacof::mds(dis,type="ordinal")
alignplot(list(res1,res2),reference=res0$conf,mains=c("pstress","ordinal"),layoutmat=c(1,2))

Run the code above in your browser using DataLab