CommT.legendpos: Infer coordinates for plot legend

Description Usage Arguments Author(s) Examples

Description

Function to infer the optimal position of the ANOVA legend given the calculated tree distance distributions.

Usage

1
CommT.legendpos(in_data)

Arguments

in_data

a dataframe storing the tree distances inferred via function CommT.kfdist(). This dataframe constitutes a stacked list of distances grouped by genetic locus and is the default output of function CommT.kfdist()

Author(s)

Michael Gruenstaeudl

Maintainer: Michael Gruenstaeudl [email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
  # Load libraries
  #  require(ape)

  # Load input data
    data(post_gt_distrs_BEAST)
    data(post_gt_distrs_starBEAST)

  # Calculate KF distances
    in_data = CommT.kfdist(post_gt_distrs_BEAST, post_gt_distrs_starBEAST)

  # Generate ANOVA legend
    legend_text = CommT.anova(in_data)

  # Generate coordinates for plot
    legend_pos = CommT.legendpos(in_data)

michaelgruenstaeudl/CommT_Code documentation built on May 22, 2017, 6:35 a.m.