pip_structure_plot: Make a structure plot of partitioned PIP by locus

View source: R/plots.R

pip_structure_plotR Documentation

Make a structure plot of partitioned PIP by locus

Description

Making a structure plot of partitioned PIP by locus This function is adapted from the 'fastTopics' package https://stephenslab.github.io/fastTopics/

Usage

pip_structure_plot(
  mat,
  categories,
  colors,
  ticks = NULL,
  font.size = 9,
  highlight = NULL,
  xlab = "Locus",
  ylab = "Proportion",
  legend.title = "Category"
)

Arguments

mat

A matrix of the proportion of PIPs partitioned to each annotation category, rows are loci, columns are annotation categories.

categories

annotation categories

colors

Colors of the structure plot categories

ticks

Labels of x-axis

font.size

Font size of structure plot

highlight

Highlight a locus


kevinlkx/mapgen documentation built on March 31, 2024, 11:03 p.m.