gplot: Bounded Density Plotting based on ggplot2

gplotR Documentation

Bounded Density Plotting based on ggplot2

Description

Function to plot bounded density probability density functions.

Arguments

.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

Methods

gplot(.Object,show=FALSE,includePoints=FALSE,lwd=1,alpha=1)

References

Wickham, H. (2009). ggplot2: Elegant Graphics for Data Analysis. Springer.


bde documentation built on June 10, 2022, 5:10 p.m.

Related to gplot in bde...