circtrans: Circular Transformation Formula

Description Usage Arguments Author(s) References See Also Examples

Description

The function performs circular transformation of density or frequency, in an area-proportional or height-proportional manner.

Usage

1
circtrans(x, radius = 0, area.prop = TRUE, factor = 1)

Arguments

x

a numeric vector storing angular values between 0 and 2 pi, or an object that can be coerced to.

radius

the radius of the reference circle.

area.prop

logical; if TRUE, an area-proportional transformation is applied; if FALSE, a height-proportional transformationis applied.

factor

a positive number representing the scale factor to scale the entire plot.

Author(s)

Danli Xu <dxu452@aucklanduni.ac.nz>, Yong Wang <yongwang@auckland.ac.nz>

References

Xu, D. and Wang, Y. (2019) Area-proportional Visualization for Circular Data (submitted).

See Also

scalefactor

Examples

1
2
3
4
5
library(circular)
x = as.vector(rvonmises(20, circular(pi), 10))
circtrans(x)                            # area-proportional transformation
circtrans(x, area.prop = FALSE)         # height-proportional transformation
circtrans(x, factor = 2)                # with a scaling factor

cplots documentation built on May 2, 2019, 12:19 p.m.

Related to circtrans in cplots...