Learn R Programming

IFC (version 0.2.1)

densCols: Colors for Smooth Density Plots

Description

Helper to map density to colors

Usage

densCols(
  x,
  y = NULL,
  xlim = range(x, na.rm = TRUE, finite = TRUE),
  ylim = range(y, na.rm = TRUE, finite = TRUE),
  nbin = 128,
  colramp = colorRampPalette(c("blue", "green", "red")),
  transformation = "asinh"
)

Arguments