Learn R Programming

R.utils (version 2.12.3)

swapXY.density: Swaps x and y coordinates of a density object

Description

Swaps x and y coordinates of a density object returned by density.

Usage

# S3 method for density
swapXY(object, ...)

Value

Returns a 'density' object of the same class with elements 'x' and 'y' swapped.

Arguments

...

Not used.

Author

Henrik Bengtsson

See Also

See density for estimating densities. See *draw() for plotting a density along one of the sides.