lines.PDFe {PDFEstimator}R Documentation

Plot Lines Method for Nonparametric Density Estimation

Description

The lines method for pdfEstimator objects.

Usage

  ## S3 method for class 'PDFe'
lines(x, showOutlierPercent = 0, outlierColor = "red3",
  lwd = 2, ...)

Arguments

x

an "estimatePDF" object

showOutlierPercent

specify confidence threshold for outliers

outlierColor

color for outliers positions outside of threshold defined in showOutlierPercent

lwd

line width for pdf. If plotPDF = FALSE and plotSQR = TRUE, then the sqr plot uses this line width

...

further plotting parameters

Value

No return value, called for side effects

Author(s)

Jenny Farmer, Donald Jacobs

References

Farmer, J. and D. Jacobs (2018). "High throughput nonparametric probability density estimation." PLoS One 13(5): e0196937.

Examples

plot(estimatePDF(rnorm(1000, 0, 1)))
lines(estimatePDF(rnorm(1000, 0, 1)), col = "gray")

[Package PDFEstimator version 4.5 Index]