tx_plot_nucFreq: Nucleotide frequency plot

View source: R/tx_plots.R

tx_plot_nucFreqR Documentation

Nucleotide frequency plot

Description

Generates a ggplot barplot using the nucleotide frequency counts in data.tables generated by tx_covNucFreqDT().

Usage

tx_plot_nucFreq(
  DT,
  gene,
  txRange = 1:nrow(DT),
  removeInsert = TRUE,
  show_yLabels = TRUE,
  bar_border = TRUE,
  showLegend = TRUE
)

Arguments

DT

data.table. Input data from which to generate the plot

gene

character. Name of the gene in DT which wants to be plotted.

txRange

integer. Range in data to be used, 'txcoor' column is used to delimit this range in the data.table.

removeInsert

logical. Removes counts from insert reads, which do not call for a nucleotide, are just the gap between read1 and read2.

show_yLabels

logical. If set to FALSE hides the y axis labels.

bar_border

logical. If set to FALSE removes the border of the bars.

showLegend

logical. If set to FALSE does not renger a legend.

Value

ggplot


AngelCampos/tx_tools documentation built on Sept. 17, 2024, 1:27 a.m.