SmoothDensHist1D: Smoothed Density Histogams in 1 Dimension published in...

View source: R/SmoothDensHist1D.R

SmoothDensHist1DR Documentation

Smoothed Density Histogams in 1 Dimension published in [Eilers/Goeman, 2004].

Description

deault SDH is a probability distribution i.e integral (SDH) ==1

Usage

SmoothDensHist1D(x, KernelsOrNbins = NULL, SDHinPercent, lambda,PlotIt=FALSE)

Arguments

x

one dimensional data, NaN are ignored

KernelsOrNbins

either c>1 Kernels at which SDH is calculated or KernelsOrNbins = nbins number of bins if KernelsOrNbins = [] or == 0 then default: KernelsOrNbins =200

SDHinPercent

==1 means max(SDH) default SDHinPercent =0

lambda

smoothing factor used by the density estimator default: lambda = 20 which roughly means that the smoothing is over 20 bins around a given point.

PlotIt

TRUE: raw plot

Details

none

Value

List with

SDH

(1:nbins) Smoothed Density Histogam for x at

Kernels

(1:nbins) locations such that plot(Kernels,SDH) gives the Smoothed Density Histogam

Note

optional: ax(SDH) ==1 does not work yetg

Author(s)

Alfred Ultsch (matlab), reeimplemented in R by Michael Thrun, 2019, improved by Joern Loetsch

References

[Eilers/Goeman, 2004] Eilers, P. H., & Goeman, J. J.: Enhancing scatterplots with smoothed densities, Bioinformatics, Vol. 20(5), pp. 623-628. 2004.

See Also

SDHplot

Examples

x=runif(100)
SmoothDensHist1D(x)



Mthrun/dbt.FlowCytometry documentation built on June 5, 2023, 10:30 a.m.