plotBubbles {PBSmodelling} | R Documentation |
Construct a Bubble Plot from a Matrix
Description
Construct a bubble plot for a matrix z
.
Usage
plotBubbles(z, xval = FALSE, yval = FALSE, rpro = FALSE,
cpro = FALSE, rres = FALSE, cres = FALSE, powr = 1,
clrs = c("black", "red"), size = 0.2, lwd = 2, debug = FALSE, ...)
Arguments
z |
input matrix |
xval |
x-values for the columns of z .
if xval=TRUE , the first row contains x-values for the columns. |
yval |
y-values for the rows of z .
If yval=TRUE , the first column contains y-values for the rows. |
rpro |
logical; if TRUE , convert rows to proportions. |
cpro |
logical; if TRUE , convert columns to proportions. |
rres |
logical; if TRUE , use row residuals (subtract row means). |
cres |
logical; if TRUE , use column residuals (subtract column means). |
powr |
power transform. Radii are proportional to z^powr .
Note: powr=0.5 yields bubble areas proportional to z . |
clrs |
colours (2-element vector) used for positive and negative values. |
size |
size (inches) of the largest bubble. |
lwd |
line width for drawing circles. |
debug |
logical; if TRUE , display debug information. |
... |
additional arguments for symbols function. |
See Also
genMatrix
Examples
plotBubbles(genMatrix(20,6),clrs=c("green","red"));
[Package
PBSmodelling version 1.18
Index]