Skip to contents

Lines and fans in rose diagram

Usage

rose_line(x, radius = 1, axial = TRUE, add = TRUE, ...)

rose_fan(x, d, radius = 1, axial = TRUE, add = TRUE, ...)

Arguments

x

angles in degrees

radius

of the rose diagram

axial

Logical. Whether x are uniaxial (axial=FALSE) or biaxial (TRUE, the default).

add

logical. Add to existing plot?

...

optional arguments passed to graphics::segments() or graphics::polygon()

d

width of a fan (in degrees)

Value

No return value, called for side effects

Examples

a <- c(0, 10, 45)
radius <- c(.7, 1, .2)
lwd <- c(2, 1, .75)
col <- c(1, 2, 3)
rose_line(c(0, 10, 45), radius = radius, axial = FALSE, add = FALSE, lwd = lwd, col = col)