Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.dip

Plot a dip() Result, i.e., Class "dip" Object


Description

Plot method for "dip" objects, i.e., the result of dip(., full.result=TRUE) or similar.

Note: We may decide to enhance the plot in the future, possibly not entirely back-compatibly.

Usage

## S3 method for class 'dip'
plot(x, do.points = (n < 20),
     colG = "red3", colL = "blue3", colM = "forest green",
     col.points = par("col"), col.hor = col.points,
     doModal = TRUE, doLegend = TRUE, ...)

Arguments

x

an R object of class "dip", i.e., typically the result of dip(., full.result= FF) where FF is TRUE or a string such as "all".

do.points

logical indicating if the ECDF plot should include points; passed to plot.ecdf.

colG, colL, colM

the colors to be used in the graphics for the Greatest convex minorant, the Least concave majorant, and the Modal interval, respectively.

col.points, col.hor

the color of points or horizontal lines, respectively, simply passed to plot.ecdf.

doModal

logical indicating if the modal interval [xL, xU] should be shown.

doLegend

logical indicating if a legend should be shown.

...

further optional arguments, passed to plot.ecdf.

Author(s)

Martin Maechler

See Also

dip, also for examples; plot.ecdf.


diptest

Hartigan's Dip Test Statistic for Unimodality - Corrected

v0.76-0
GPL (>= 2)
Authors
Martin Maechler (originally from Fortran and S-plus by Dario Ringach, NYU.edu)
Initial release
2021-05-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.