The plot method for pdfEstimator objects.
# S3 method for PDFe
plot(x, plotPDF = TRUE, plotSQR = FALSE,
plotShading = FALSE, shadeResolution = 100,
showOutlierPercent = 0, outlierColor = "red3", sqrPlotThreshold = 2,
sqrColor = "steelblue4", type="l", lwd = 2, xlab = "x", ylab = "PDF",
legendcex = 0.9, ...)No return value, called for side effects
an "estimatePDF" object
plot the probability density function
plot the scaled quantile residual of the estimate
plot a gray background shading representing the probability density of the scaled quantile residuals
the number of sample points plotted in the background if plotShading = TRUE. Increasing resolution will provide sharper contours and take longer to plot.
specify confidence threshold for outliers
color for outliers positions outside of threshold defined in showOutlierPercent
magnitude of ylim above and below zero for SQR plot
color for sqr plot for positions within the threshold defined in showOutlierPercentage
plot type for pdf. If plotPDF = FALSE and plotSQR = TRUE, then the sqr plot uses this type
line width for pdf. If plotPDF = FALSE and plotSQR = TRUE, then the sqr plot uses this line width
x-axis label for pdf. If plotPDF = FALSE and plotSQR = TRUE, then the sqr plot uses this label
y-axis label for pdf. If plotPDF = FALSE and plotSQR = TRUE, then the sqr plot uses this label
expansion factor for legend point size with sqr plot type, for plotPDF = FALSE and plotSQR = TRUE
further plotting parameters
Jenny Farmer, Donald Jacobs
Farmer, J. and D. Jacobs (2018). "High throughput nonparametric probability density estimation." PLoS One 13(5): e0196937.
plot(estimatePDF(rnorm(1000, 0, 1)), plotSQR = TRUE, showOutlierPercent = 99)
Run the code above in your browser using DataLab