Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 class 'density'
swapXY(object, ...)

Arguments

...

Not used.

Value

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

Author(s)

Henrik Bengtsson

See Also

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


R.utils

Various Programming Utilities

v2.10.1
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.