plot.slidevector {asymmetry}R Documentation

Configuration Plot for the Slide-vector Model

Description

Method for a two-dimensional plot of the model. Available rownames are plotted as labels above the points. The slide-vector is shown as an arrow.

Usage

## S3 method for class 'slidevector'
plot(x, plot.dim = c(1, 2), yplus = 0, xlab, ylab, ...)

Arguments

x

Object of class slidevector

plot.dim

A vector with dimensions to be plotted

yplus

Parameter to adjust the vertical position of the label

xlab

Label of x-axis.

ylab

Label of y-axis.

...

Further plot arguments: see plot for detailed information.

Examples

## 2D plot for the slide-vector model on generated data
dis <- matrix(c(1, 2, 3, 4, 5, 6, 2, 8, 9, 3), nrow = 5, ncol = 2)   #configuration
a <- rbind(dis, dis+1.5)                                             #generate slide-vector
test <- as.matrix(dist(a))[1:5, 6:10]                                #extract data
v <- slidevector(test, ndim = 2, itmax = 250, eps = .001)
plot(v)

[Package asymmetry version 2.0.3 Index]