Learn R Programming

ctmva (version 1.6.0)

procrustes.plot.mds: Plot of classical and continuous-time principal coordinates

Description

This function plots two continuous-time principal coordinates along with the corresponding classical principal coordinates, where the latter is aligned with the former by Procrustes transformation

Usage

procrustes.plot.mds(
  obj,
  points,
  npoints = 500,
  cols = viridis(50),
  procoord = 1:2,
  plotcoord = 1:2,
  linewidth = 1.3,
  ltitle = "time",
  title = "",
  samescale = FALSE,
  cex.legend = 1,
  GOF.method = 1,
  digits = 1,
  xlim = NULL,
  ylim = NULL,
  size.axis.title = 11,
  size.axis.text = 11,
  size.ltitle = 11,
  size.ltext = 11,
  coord_fixed = TRUE,
  xlab = NULL,
  ylab = NULL,
  colourbar = TRUE,
  ...
)

Value

None; a plot is generated

Arguments

obj

an object of class "mds.ct"

points

matrix of classical principal coordinates, e.g. as produced by cmdscale

npoints

number of time points (equally spaced along the range of times) at which to plot the coordinates

cols

color scheme; viridis(50) by default

procoord

coordinates to which Procrustes transformation should be applied

plotcoord

which coordinates to plot

linewidth

line width for the principal coordinate curve

ltitle

legend title

title

title of the graph

samescale

logical: Should the x- and y-axes have the same range?

cex.legend

scaling factor for legend key

GOF.method

method to use for computing percent dissimilarity explained (see argument GOF of cmdscale)

digits

number of digits to display for percent dissimilarity explained

xlim, ylim

x- and y-limits. Ignored if samescale==TRUE.

size.axis.title

size for axis titles

size.axis.text

size for axis text

size.ltitle

size for color legend title

size.ltext

size for color legend text

coord_fixed

logical: Should aspect ratio be fixed to 1?

xlab, ylab

x- and y-labels. If these are NULL, the principal coordinate numbers and the percent dissimilarity explained are used as the axis labels.

colourbar

logical: Should a color bar (legend) be included?

...

arguments passed to labs

Author

Philip Tzvi Reiss <reiss@stat.haifa.ac.il>

See Also

procrustes.mds.ct

Examples

Run this code
# see example for mds.ct

Run the code above in your browser using DataLab