Skip to contents

Generate a triangle plot using the output of hybridIndex

Usage

triangle.plot(
  data = NULL,
  colors = NULL,
  outline = T,
  ind.labels = F,
  cex = 2,
  alpha = 1,
  jitter = 0,
  max.overlaps = 10
)

Arguments

data

Dataframe returned from hybridIndex function

colors

(character) Colors to use for each population. Optional, if not supplied, default colors will be generated

outline

(logical) Whether or not to draw possible triangle space as outline

ind.labels

(logical) Whether or not to label each individual on the triangle plot

cex

(character) Size of points

alpha

(numeric) Transparency of points

jitter

(numeric) Amount by which to jitter points on plot (to facilitate visualization)

max.overlaps

(numeric) Only necessary if labeling individuals. Increasing this will increase the number of individuals labeled, even if labels overlap.

Value

ggplot2 object

Examples

#triangle.plot(data = your.data, colors = your.colors)