getDensityColors: Wrapper function around grDevices::densCols produces a vector...

View source: R/getDensityColors.R

getDensityColorsR Documentation

Wrapper function around grDevices::densCols produces a vector containing colors which encode the local densities at each point in a scatterplot.

Description

Wrapper function around grDevices::densCols produces a vector containing colors which encode the local densities at each point in a scatterplot.

Usage

getDensityColors(x, y, transform = FALSE)

Arguments

x

the x and y arguments provide the x and y coordinates of the points.

y

the x and y arguments provide the x and y coordinates of the points.

transform

whether or not to log2 transform the x,y values

Value

vector containing colors which encode the local densities at each point in a scatterplot.


cusom/CUSOM.ShinyHelpers documentation built on Oct. 23, 2023, 6:50 a.m.