rd_1_plots_discrete {barsurf} | R Documentation |
Plots (in 2D and 3D) of functions (represented by matrices) of two discrete variables, or plots of other matrices.
plot2d.cell (xb, yb, z, grid.lines=TRUE, main, xlab="x", ylab="y", xat, yat, xlabs, ylabs, colv.1, colv.2, colv.na, contrast=0, pty="s", ...) plot3d.bar (xb, yb, z, main, xlab="x", ylab="y", xat, yat, xlabs, ylabs, colv.1, colv.2, colvs.sms, reverse=FALSE, zlim, ...)
xb |
An optional sorted vector of x breakpoints. |
yb |
An optional sorted vector of y breakpoints. |
z |
A matrix of cell values. |
grid.lines |
If true (the default), plot grid lines. |
main |
. |
xlab |
. |
ylab |
. |
xat |
The x axis tick points. |
yat |
The y axis tick points. |
xlabs |
The x axis tick labels. |
ylabs |
The y axis tick labels. |
colv.1 |
An HCL color vector. |
colv.2 |
An HCL color vector. |
colv.na |
An HCL color vector. |
colvs.sms |
A vector (or matrix, with row vectors), giving the colors of the submatrices. |
contrast |
A numeric scalar, giving the relative contrast, currently in the interval [-1, 0]. |
pty |
. |
reverse |
If true, apply colors to submatrices in reverse order. |
zlim |
The z axis limits. |
... |
Other arguments for par(). |
The matrix can be either a standard matrix object or a nested matrix object.
If xb and yb values are supplied then their lengths should be one more than the dimensions of z.
For plot2d.cell, colors are interpolated between colv.1 and colv.2 based on the values of z. For plot3d.bar, colv.1 is the top of the bars, and colv.2 is the front of the bars.
By default, colors are determined by global options.
z = outer (1:10, 1:10, "+") plot3d.bar (,,z)