Skip to contents

For gt_admix, the following types of plots are available:

  • cv: the cross-validation error for each value of k

  • barplot a standard barplot of the admixture proportions

Usage

# S3 method for class 'gt_admix'
autoplot(object, type = c("cv", "barplot"), k = NULL, run = NULL, ...)

Arguments

object

an object of class gt_admixture

type

the type of plot (one of "cv", and "boxplot")

k

the value of k to plot (for barplot type only) param repeat the repeat to plot (for barplot 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().

Value

a ggplot2 object

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.