plot.magbin | R Documentation |
Plot 2D histogram counts or a third (z) axis summary statistic in 2D cells of different shapes.
## S3 method for class 'magbin'
plot(x, colramp = hcl.colors(21), colstretch = "lin",
sizestretch = "lin", colref = "count", sizeref = "none", add = FALSE,
dobar = TRUE, title = colref, colnorm = FALSE, projden = FALSE, projsig = FALSE,
xdata = NULL, ydata = NULL, pch.dust = '.', cex.dust = 1, ...)
x |
Object of class 'magbin'. |
colramp |
Vector; a colour palette to use. Must be a vector and not a function. |
colstretch |
Character scalar; colour stretch, either linear (lin, default) or logarithmic (log, good for large dynamic ranges). |
sizestretch |
Character scalar; size stretch, either linear (lin, default) or logarithmic (log, good for large dynamic ranges). |
colref |
Character scalar; colour reference for call, either it should be based on the counts (count) or the z-axis statistic (zstat)? |
sizeref |
Character scalar; colour reference for call, either it should be ignored (none, so all are the same size and closely packed), based on the counts (count) or the z-axis statistic (zstat)? |
add |
Logical; should bins be added to the current plot? If FALSE then a new plot will be made. |
dobar |
Logical; should a colour bar be added to the plot? |
title |
Character scalar; title to use for the |
colnorm |
Logical; should the colour bar be normalised so the maximum value equals 1? |
projden |
Logical; do you want projected density PDFs to be displayed above and to the side of the standard |
projsig |
Logical; if projden = TRUE then this will optionally add lines to show the pseudo 1-sigma range (15.9% to 84.1% quantiles). |
xdata |
Numeric vector; the original x data sent to |
ydata |
Numeric vector; the original y data sent to |
pch.dust |
Scalar; pch symbol to use for the dust points. |
cex.dust |
Scalar; cex size to use for the dust points. |
... |
Dots to be passed to |
Run for the side effect of making a nice plot.
Aaron Robotham
magbin
temp = magbin(rnorm(1e4), rnorm(1e4), plot=FALSE)
plot(temp, xlab='x', ylab='y')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.