- admixture_df
data.frame or tibble containing admixture data (see examples).
- type
show a traditional STRUCTURE barplot ("structure")
or a facet barplot ("facet").
- cluster_cols
character vector of colours the same length as the number of clusters.
If NULL, a blue-green palette is used.
- cluster_names
character vector of names the same length as the number of clusters.
If NULL, the cluster column names are used.
- legend
add legend at position ("none", "top", "right", "bottom" or "left").
Default is to hide legend.
- labels
show labels at the site level or the
individual level ("site" or "individual").
- flip_axis
flip the axes so that the plot is vertical (TRUE or FALSE).
Default is FALSE (horizontal barplot).
- ylabel
string for y label.
- site_dividers
add dotted lines that divide sites (TRUE or FALSE).
- divider_width
width of site divider lines.
- divider_col
colour of site divider lines.
- divider_type
linetype of site divider line.
- site_order
character vector of site labels used to customise the order of sites.
If NULL, sites are ordered alphabetically.
- display_site_labels
display site labels (TRUE or FALSE).
- site_labels_size
numeric value for site label size.
- site_labels_x
numeric value for site label horizontal position.
- site_labels_y
numeric value for site label vertical position.
- site_labels_angle
numeric value for rotating angle of site label.
- site_ticks
show ticks when labels = "site".
- site_ticks_size
numeric value for site tick size.
- facet_col
number of columns to display for facet barplot.
- facet_row
number of rows to display for facet barplot.