Learn R Programming

tidypopgen (version 0.4.3)

theme_distruct: A theme to match the output of distruct

Description

A theme to remove most plot decorations, matching the look of plots created with distruct.

Usage

theme_distruct()

Arguments

Value

a ggplot2::theme

Examples

Run this code
# Read example gt_admix object
admix_obj <-
  readRDS(system.file("extdata", "anolis", "anole_adm_k3.rds",
    package = "tidypopgen"
  ))

# Basic barplot with disstruct theme
autoplot(admix_obj, k = 3, run = 1, type = "barplot") +
  theme_distruct()

Run the code above in your browser using DataLab