
Autoplots for gt_admix
objects
autoplot_gt_admix.Rd
For gt_admix
, the following types of plots are available:
cv
: the cross-validation error for each value ofk
barplot
a standard barplot of the admixture proportions
Arguments
- object
an object of class
gt_admixture
- type
the type of plot (one of "cv", and "barplot")
- k
the value of
k
to plot (forbarplot
type only) param repeat the repeat to plot (forbarplot
type only)- run
the run to plot (for
barplot
type only)- ...
additional arguments to be passed to autoplot method for q_matrices
autoplot_q_matrix()
, used when type isbarplot
.
Details
autoplot
produces simple plots to quickly inspect an object. They are
not customisable; we recommend that you use ggplot2
to produce publication
ready plots.
This autoplot will automatically rearrange individuals according to
their id and any grouping variables if an associated 'data' gen_tibble is provided.
To avoid any automatic re-sorting of individuals, set arrange_by_group
and
arrange_by_indiv
to FALSE. See autoplot.q_matrix
for further details.