area2radius.stack: Radius of a sector (circle wedge)

View source: R/area2radius.stack.R

area2radius.stackR Documentation

Radius of a sector (circle wedge)

Description

area2radius.stack is a function that will return the sequential radii for stacked sections in a sector (circle wedge) of a given area and angle.

Usage

  area2radius.stack(data, w.g = width.global, a = angle)

Arguments

data

A dataframe that is three columns wide and has the column names "prob", "cond", and "region": "prob" is the probability of being in the "region" and "cond" is a condition or grouping variable. See prob.cond.region in the examples. The stacking will occur in order of the levels when "cond" is a factor, innermost to outermost.

w.g

The global width (as specified in the bar chart)

a

The total angle to be occupied in degrees.


swihart/aaroseplot documentation built on Nov. 20, 2022, 11:30 a.m.