plot_pie: Visualize biogeographic patterns using pie charts

Description Usage Arguments Value Examples

Description

Visualize biogeographic patterns using pie charts

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot_pie(
  omega,
  shp,
  r = 1,
  col = hcl.colors(5),
  pie_control = list(),
  legend = FALSE,
  legend_pie = FALSE,
  ...
)

Arguments

omega

a matrix of phyloregion of probabilities of each species

shp

a polygon shapefile of grid cells with a column labeled “grids”.

r

Radius of the pie legend to be displayed

col

List of colors for the pies.

pie_control

The list of control parameters to be passed into the add.pie function.

legend

Logical, whether to plot a legend or not.

legend_pie

Legend for the pie plots.

...

Further arguments passed to or from other methods.

Value

Returns no value, just map color pies in geographic space!

Examples

1
2
3
4
5
data(africa)
K <- ncol(africa$omega)

COLRS <- phyloregion:::hue(K)
plot_pie(africa$omega, shp = africa$polys, col=COLRS)

phyloregion documentation built on May 1, 2021, 9:06 a.m.