PlotTriNucSpectrum: PlotTriNucSpectrum

View source: R/firevat_plot.R

PlotTriNucSpectrumR Documentation

PlotTriNucSpectrum

Description

Plots the spectrum of 96 trinucleotide distribution (C>A, C>G, C>T, T>A, T>C, T>G) Please note that this function assumes that both sub.types and spectrum are sorted in the following order: C>A, C>G, C>T, T>A, T>C, T>G

Usage

PlotTriNucSpectrum(
  sub.types,
  spectrum,
  max.y.val,
  min.y.val,
  y.axis.title,
  draw.top.strip = T,
  draw.x.axis.labels = T,
  draw.y.axis.labels = T,
  draw.y.axis.title = T,
  font.size.small = 8,
  font.size.med = 14,
  plot.margin.top = 0.5,
  plot.margin.bottom = 0.5,
  plot.margin.left = 0.5,
  plot.margin.right = 0.5,
  title
)

Arguments

sub.types

A character vector (types of 96 trinucleotide substitutions)

spectrum

A numeric vector (96 elements)

max.y.val

y axis maximum value

min.y.val

y axis minimum value

y.axis.title

y axis title

draw.top.strip

If True then draws top strip; Default = T

draw.x.axis.labels

If True then draws x axis labels; Default = T

draw.y.axis.labels

If True then draws y axis labels; Default = T

draw.y.axis.title

If True then draws y axis title; Default = T

font.size.small

Small font size; Default = 8

font.size.med

Medium font size; Default = 14

plot.margin.top

Top margin; Default = 0.5

plot.margin.bottom

Bottom margin; Default = 0.5

plot.margin.left

Left margin; Default = 0.5

plot.margin.right

Right margin; Default = 0.5

title

Plot title

Value

A ggplot object


cgab-ncc/FIREVAT documentation built on Nov. 19, 2022, 5:55 p.m.