plot_admixture_labelled | R Documentation |
Make stacked-bar plot of ancestry proportions, with population labels
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,
...
)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.