40_test_plots: Test Plots

Description Usage Arguments See Also Examples

Description

Simple plotting functions for testing both 2d and 3d transformations.

Note that currently, the spin3d function only doesn't work well for objects, where the x/y/z ranges are considerably different.
e.g. An x and y range between -10 and 10, and a z range between 0 and 1000.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
vt3.testplot (v=SQUARE, ...,
    main="", xlab="x", ylab="y",
    xlim = c (-4.5, 4.5), ylim=xlim,
    grid.lines=TRUE, cross.hairs=grid.lines,
    proj="xy", sort=TRUE)

vt3.testplot3 (v=CUBE, ...,
    main = c ("proj=xy", "proj=xz", "proj=yz"),
    xlab="x", ylab="y", zlab="z",
    xlim = c (-4.5, 4.5), ylim=xlim, zlim=xlim,
    grid.lines=TRUE, cross.hairs=grid.lines,
    sort=TRUE)

spin3d (v=CUBE, ..., t=5)

Arguments

v

A GeomObject, which includes a GeomArray.

main, xlab, ylab, zlab

Strings, the main, x axis and y axis titles.
Note that in 3D plots, these map from 3D to 2D.

xlim, ylim, zlim

Numeric vectors of length two, giving the x, y and z ranges.
Note that in 3D plots, these map from the 3D coordinates to 2D coordinates.

grid.lines

Logical, add grid lines.

cross.hairs

Logical, add lines running through the origin.

proj

String, either "xy", "xz" or "yz", projection for 3D objects.

sort

Logical, if true (the default), depth-sort 3D objects.

t

Numeric, approximate number of seconds.

...

Ignored.

See Also

MatrixArray

Binary Operators
This describes how to perform operations on MatrixArray objects.

Pre-Multiplication Transformation Matrices

Post-Multiplication Transformation Matrices

SQUARE, CUBE

Examples

1
2
3
4
5
6
vt3.testplot (SQUARE %]*% brot2 (pi / 8) )

vt3.testplot3 (TCUBE)

if (interactive () )
	spin3d (v=CUBE)

vectools documentation built on June 7, 2021, 9:08 a.m.