plot_allele_frequency: plot_allele_frequency

View source: R/plotting_functions.R

plot_allele_frequencyR Documentation

plot_allele_frequency

Description

plot_allele_frequency

Usage

plot_allele_frequency(
  position,
  heteroplasmy_matrix,
  allele_matrix,
  cluster,
  names_allele_qc,
  names_position_qc,
  size_text,
  index
)

Arguments

position

Character name of the base to plot.

heteroplasmy_matrix

Third element returned by get_heteroplasmy.

allele_matrix

Fourth element returned by get_heteroplasmy.

cluster

Vector specifying a partition of the samples.

names_allele_qc

Character vector with length equal to n_col of allele_matrix. Each element specifies the name of the base and the allele.

names_position_qc

Character vector with length equal to n_col of allele_matrix. Each element specifies the name of the base.

size_text

Character specifying the size of the text for gridExtra function grid.arrange)

index

Fifth element returned by get_heteroplasmy.

Value

grid.arrange plot of allele frequencies of a specific base across samples divided according to cluster.

Author(s)

Gabriele Lubatti gabriele.lubatti@helmholtz-muenchen.de

See Also

https://cran.r-project.org/package=gridExtra


MitoHEAR documentation built on March 18, 2022, 6:47 p.m.