View source: R/general.purpuse.utilities.R
hist2D | R Documentation |
Replacement of scatterplot to be used when number of points is to high and/or they highly overlap
hist2D(
x,
y,
xbins = 100,
ybins = 100,
cols = c("white", "gray", "blue", "orange", "red"),
zfun = identity,
leg.title = "",
num.leg.tic = NULL,
legend = TRUE,
trimZq = 0,
xlim = NULL,
ylim = NULL,
zlim = NULL,
new = TRUE,
xlab = deparse(substitute(x)),
ylab = deparse(substitute(y)),
...
)
x , y |
point coordinates |
xbins , ybins |
number of bins or bin borders. Everything outside of bins are removed |
cols |
colours to form gradient |
zfun |
transformation of frequency (try |
leg.title |
legend title |
num.leg.tic |
desired number of tics in the legend |
legend |
logical, should legend be plotted |
trimZq |
frequencies outside of quantile(trimZq,1-trimZq) are set to the corresponding (closest) quantiles. Default is 0 (not trimming). See |
xlim , ylim , zlim , xlab , ylab |
graphical parameters |
new |
create new plot (default) or add to existing |
... |
other arguments for plot function |
list bith bins and frequencies (invisible)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.