This gallery uses the full example data shipped in
inst/extdata. It is the closest match to the package’s
real-world supported examples.
GWAS
gwas <- import_gwas(ggpop_extdata("gwas", "gcta.mlma"), type = "gcta")
plot_manha(gwas)
plot_qq(gwas)
PCA
pca <- import_pca(
ggpop_extdata("pca", "gcta.eigenvec"),
type = "gcta",
eigenval = ggpop_extdata("pca", "gcta.eigenval"),
pop_group = ggpop_extdata("pop_group.txt")
)
plot_pca(pca)
Admixture
admix <- import_admix(
ggpop_extdata("admixture"),
type = "admixture",
ind = ggpop_extdata("snp", "finalsnp_ld.fam"),
pop_group = ggpop_extdata("pop_group.txt")
)
plot_admix(admix, k = "all", order_group = TRUE)
The same data also works with the layered path:
ggpop(admix) + geom_admix(k = 3, order_group = TRUE)
