Colors for Smooth Density Plots
densCols produces a vector containing colors which encode the
local densities at each point in a scatterplot.
1 2 3
numeric vector of length one (for both directions) or two
(for x and y separately) specifying the number of equally spaced
grid points for the density estimation; directly used as
numeric vector (length 1 or 2) of smoothing bandwidth(s).
If missing, a more or less useful default is used.
function accepting an integer
densCols computes and returns the set of colors that will be
used in plotting, calling
bandwidth, gridsize = nbin, ..) from package KernSmooth.
blues9 is a set of 9 color shades of blue used as the default in
densCols returns a vector of length
contains colors to be used in a subsequent scatterplot. Each color
represents the local density around the corresponding point.
Florian Hahne at FHCRC, originally
bkde2D from package KernSmooth;
smoothScatter() (package graphics) which
builds on the same computations as
1 2 3 4 5 6
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.