plot_admixture_labelled: Make stacked-bar plot of ancestry proportions, with...

View source: R/admixture.R

plot_admixture_labelledR Documentation

Make stacked-bar plot of ancestry proportions, with population labels

Description

Make stacked-bar plot of ancestry proportions, with population labels

Usage

plot_admixture_labelled(
  Q,
  sort_order = NULL,
  pop_order = NULL,
  cluster_order = NULL,
  label_pops = TRUE,
  label_size = 3,
  opaque_labs = FALSE,
  label_ind = FALSE,
  nudge = 0.05,
  ymax = 1.5,
  ...
)

Arguments

Q

a matrix of admixture proportions, melted or not; must have a column 'pop' with population labels

sort_order

pre-determined sort order for individuals, eg. by cluster membership

pop_order

pre-determined sort order for populations

cluster_order

named vector to map arbitrary ancestry-component labels ('pop1') onto meaningful ones

label_pops

should population labels be drawn?

label_size

text size for population labels

label_ind

should individuals be labelled along x-axis (probaly not, if more than a few samples)

nudge

extra buffer around population labels

ymax

how much extra space to allow for population labels; about 1.5 is probably enough

...

extra arguments, ignored

label

show individual IDs along axis


andrewparkermorgan/popcorn documentation built on July 8, 2023, 12:42 p.m.