Plot method for class "lcd".
# S3 method for lcd
plot(x, data, w=NULL, log=FALSE, col="blue", knotcol=col,
border="grey", lwd=1, pch=1, main, breaks=50, ...)
an object of class "lcd".
a numeric vector storing the observations.
frequencies or weights for the values in x
. If NULL, w
= 1
is used for each value in x
.
logical, indicating if the log density plot is to be plotted instead.
color of lines.
color of knots.
color for the border of histogram or log histogram.
line width.
point type used for knots.
main title.
number of break points used for creating histogram or log-histogram.
further arguments passed to or from other methods.
Either the density or its logarithm is plotted, depending on
the value of log
. Knots are shown in circles. If data
is provided, the plot also includes a histgram or log-histogram for
data
.
Liu, Y. and Wang, Y. (2018). A Fast Algorithm for Univariate Log-concave Density Estimation. Australia & New Zealand Journal of Statistics (To appear).