cornerpies: Make pie charts for plotting ranges on corners

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/BioGeoBEARS_plots_v1.R

Description

This function makes pie charts for plotting ranges on corners. It makes use of ape:::floating.pie.asp to plot the pie charts on the corners.

Usage

1
2
  cornerpies(pievals, coords, piecol, adj = c(0.5, 0.5),
    ...)

Arguments

pievals

The matrix (numnodes x numstates) of probabilities to plot.

coords

The coordinates at which to plot the labels.

piecol

The color for each possible state.

adj

Position adjustment; default adj=c(0.5,0.5)

...

Additional arguments to standard functions

Details

To get the corner coordinates, use corner_coords. Please note the special input required in that function to get it to access a corner-coordinates function in the extensions data (extdata) directory.

Value

nothing

Note

Go BEARS!

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster https://code.google.com/p/lagrange/

Matzke_2012_IBS

ReeSmith2008

See Also

cornerlabels, corner_coords, get_lagrange_nodenums, LGpy_splits_fn_to_table, LGcpp_splits_fn_to_table

Examples

1
test=1

Example output

Loading required package: rexpokit
Loading required package: SparseM

Attaching package: 'SparseM'

The following object is masked from 'package:base':

    backsolve

Loading required package: Rcpp
Loading required package: cladoRcpp
Loading required package: ape
Loading required package: phylobase

Attaching package: 'phylobase'

The following object is masked from 'package:ape':

    edges

BioGeoBEARS documentation built on May 29, 2017, 8:36 p.m.