FancyPies: Computes the edges of any regular n-sided figure in spherical...

Description Usage Arguments Details Value Author(s) See Also

View source: R/FancyPies.R

Description

Provides coordinates for one pie chart, this function must be iterated to produce several pies.

Usage

1
FancyPies(center, obs, nedges = 3, radius = 5e4, orient = 0, diag = FALSE)

Arguments

center

The geographical position of the pie as c(lon, lat) in decimal degrees.

obs

Vector of numerical and non-negative quantities that will be displayed as the pie slices (typically produced using table()).

nedges

The number of desired edges (3 -> triangle, 4 -> square, etc).

radius

The pie radius (in meters).

orient

The rotation factor of the fig (in degrees).

diag

Produce diagnostic plot for checking purposes (True or False).

Details

This function is wrapped within Pies2GE; see below.

Value

Provides an array of coordinates for drawing the pie chart as polygons (lines = points delimiting the pie sectors, columns = sector number, lon, lat in decimal degrees).

Author(s)

Nils Arrigo, [email protected] 2012 EEB, the University of Arizona, Tucson

See Also

curvy GetEdges Pies2GE


R2G2 documentation built on May 29, 2017, 1:41 p.m.