log2dDen: Calculate 2D densities on a log scale

Description Usage Arguments Value

View source: R/log2dDen.R

Description

Calculate 2D densities on a log scale

Usage

1
log2dDen(x, y, nbin = 100, lims = c(range(x), range(y)), freq = FALSE)

Arguments

x

Numeric input for x dimension

y

Numeric input for y dimension

nbin

Integer of length 1, the number of bins in each dimension

lims

Numeric of length 4, ranges for the x and y values, respectively

freq

Logical of length 1, counts converted to proportions when FALSE

Value

list with x, y: seq(1, nbin) for plotting; z: nbin x nbin matrix with the freq/proportion values at the x and y bins; xseq, yseq: numeric vectors containing the cut points for the x and y bins.


daynefiler/dlfUtils documentation built on Oct. 22, 2021, 9:49 a.m.