plotBubbles | R Documentation |
Construct a bubble plot for a matrix z
.
plotBubbles(z, xval=FALSE, yval=FALSE, dnam=FALSE, rpro=FALSE,
cpro=FALSE, rres=FALSE, cres=FALSE, powr=0.5, size=0.2, lwd=1,
clrs=c("black","red","blue"), hide0=FALSE, frange=0.05, prettyaxis=FALSE, ...)
z |
|
xval |
|
yval |
|
dnam |
|
rpro |
|
cpro |
|
rres |
|
cres |
|
powr |
|
size |
|
lwd |
|
clrs |
|
hide0 |
|
frange |
|
prettyaxis |
|
... |
|
The function plotBubbles
essentially flips the z
matrix
visually. The columns of z
become the x-values while the rows of
z
become the y-values, where the first row is displayed as the
bottom y-value and the last row is displayed as the top y-value. The
function's original intention was to display proportions-at-age vs. year.
Jon T. Schnute, Research Scientist Emeritus
Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC
Maintainer: Rowan Haigh, Program Head – Offshore Rockfish
Pacific Biological Station (PBS), Fisheries & Oceans Canada (DFO), Nanaimo BC
locus opus: Offsite, Vancouver BC
Last modified Rd: 2023-10-18
In package PBSmodelling:
genMatrix
local(envir=.PBSmodEnv,expr={
oldpar = par(no.readonly=TRUE)
plotBubbles(round(genMatrix(40,20),0),clrs=c("green","grey","red"));
data(CCA.qbr,envir=.PBSmodEnv)
plotBubbles(CCA.qbr,cpro=TRUE,powr=.5,dnam=TRUE,size=.15,
ylim=c(0,70),xlab="Year",ylab="Quillback Rockfish Age")
par(oldpar)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.