Draws a density curve along one of the sides of the current plotting region.
# S3 method for density
draw(object, side=1, height=0.2, offset=0, scale=c("absolute", "relative"), xtrim=NULL,
xpd=TRUE, ...)
Returns the drawn 'density' object (with the 'x' and 'y' coordinates as plotted).
An integer
specifying which side to draw along.
See mtext
for details.
A numeric
scalar specifying the "height" of the curve,
where height means the maximum height of the density.
that is, how much the zero-density position should be shifted.
A character
specifying the scale of the curve, which
can be either absolute or relative.
Not used.
Henrik Bengtsson
See density
for estimating densities.
Internally *swapXY()
may be used.