View source: R/SmoothDensHist1D.R
SmoothDensHist1D | R Documentation |
deault SDH is a probability distribution i.e integral (SDH) ==1
SmoothDensHist1D(x, KernelsOrNbins = NULL, SDHinPercent, lambda,PlotIt=FALSE)
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 |
none
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 |
optional: ax(SDH) ==1 does not work yetg
Alfred Ultsch (matlab), reeimplemented in R by Michael Thrun, 2019, improved by Joern Loetsch
[Eilers/Goeman, 2004] Eilers, P. H., & Goeman, J. J.: Enhancing scatterplots with smoothed densities, Bioinformatics, Vol. 20(5), pp. 623-628. 2004.
SDHplot
x=runif(100)
SmoothDensHist1D(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.