Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

shapes3d

Plot 3D data


Description

Plot the landmark configurations from a 3D dataset

Usage

shapes3d(x,loop=0,type="p", color = 2, joinline=c(1:1), axes3=FALSE, rglopen=TRUE)

Arguments

x

An array of size k x 3 x n, where k is the number of landmarks and n is the number of observations

loop

gives the number of times an animated loop through the observations is displayed (in order 1 to n). loop > 0 is suitable when a time-series of shapes is available. loop = 0 gives a plot of all the observations on the same figure.

type

Type of plot: "p" points, "dots" dots (quicker for large plots), "l" dots and lines though landmarks 1:k if ‘joinline’ not stated

color

Colour of points (default color = 2 (red)). If a vector is given then the points are coloured in that order.

joinline

Join the numbered landmarks by lines

axes3

Logical. If TRUE then plot the axes.

rglopen

Logical. If TRUE then open a new RGL window, if FALSE then plot in current window.

Value

None

Author(s)

Ian Dryden

References

Dryden, I.L. and Mardia, K.V. (2016). Statistical Shape Analysis, with Applications in R (Second Edition). Wiley, Chichester.

Examples

data(dna.dat)
shapes3d(dna.dat)

shapes

Statistical Shape Analysis

v1.2.6
GPL-2
Authors
Ian L. Dryden
Initial release
2021-03-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.