Simple plotting functions for testing both 2d and 3d transformations.
polyplot (ps, …,
main,
grid=TRUE, add=FALSE, transpose=FALSE,
xlim=c(-5, 5), ylim=c(-5, 5),
line.color="black", fill.color="lightblue")cubplot (ps, …,
transpose=FALSE,
xlim=c(-5, 5), ylim=c(-5, 5), zlim=c(-5, 5),
line.color="black")
A matrix or MatrixArray object. By default: In polyplot, each matrix should be a two-column matrix, representing points around a polygon. In cubplot, each matrix should be equal to cubps, or a transformed version of it, via standard geometric transformation matrices. Note that the first polygon (matrix) is plotted first, and the second polygon is plotted second, and so on.
String, the main title.
Logical, add grid lines.
Logical, if true, plot the polygons on top of an existing plot.
Logical, if true, use the transpose of each matrix.
Numeric vectors of length two, giving the x, y and z ranges.
Character vectors of length one, or the length of p, giving the the line and fill colors.
Ignored.
Binary Operators This describes how to perform operations on MatrixArray objects.
Pre-Multiplication Transformation Matrices
# NOT RUN {
########################################
#refer to:
#Pre-Multiplication or Post-Multiplication
#for better examples
########################################
polyplot (sqps %]*% brot2 (pi / 8) )
# }
Run the code above in your browser using DataLab