Function to plot bounded density probability density functions.
.Object
A bounded density estimator or a list of bounded density estimators. See all the accepted classes here by running the command getSubclasses("BoundedDensity")
.
show
Logical value. If FALSE
the density of the BoundedDensity
object in .Object
is not plotted but only the ggplot2
graphical object is returned. This object can be used for further modifications and plots. If TRUE
ggplot2
graphical object is returned and also the density is plotted.
includePoints
Logical value. It determines whether or not the point used to estimate the density (dataPoints
) are included in the plot. Note that, in order to improve the visualization, the points are jittered in the Y axis. When the amount of points is very high, jittering is not enough; in that case, the alpha
parameter can be used to control the transparency of the points.
lwd
Usual line width graphical parameter. See ?par
for more information
alpha
A value between 0 and 1 indicating the transparency of the points when they are included in the plot
gplot(.Object,show=FALSE,includePoints=FALSE,lwd=1,alpha=1)
Wickham, H. (2009). ggplot2: Elegant Graphics for Data Analysis. Springer.